From: JonY <jo...@us...> - 2012-03-22 22:00:47
|
On 3/22/2012 23:30, Leandro Santiago wrote: > 2012/3/22 Leandro Santiago >> Hello to all. I'm using ubuntu 11.04 (32-bits) to cross-compile some >> static libraries to windows. >> >> I'm using mingw-w32 1.0, downloded from mingw-64 sf page. >> >> In some libraries I'm compiling, I have an error in the link time, >> when in the line of the source when e.g a function called myFunction() >> is called, in linking time the linker tries to call >> __impl__myFunction(), which is undefined. >> >> To reproduce this error, download libconfig-1.4.8.tar.gz from >> http://www.hyperrealm.com/libconfig/ >> >> The configure parameters I used were: >> --prefix=$BUILD_PATH --disable-shared --enable-static --host=i686-w64-mingw32 The code assumes DLLs will be build. __imp__ means the symbol needs to be resolved from a DLL. Ask the libconfig developers for help, its a bug in their code, likely due to a misunderstanding on what dllexport/dllimport does. Alternatively, don't do static builds, until its fixed upstream. |