From: Miguel C. <mig...@gm...> - 2007-05-10 05:10:15
|
Hi all, I'm here again :) Now I have tried to compile wxSQLite3 under mingw, and got some errors. Apparently the compilation it's OK, but when the linker tries to create the library, a lot of 'undefined reference' occurs. Anyone hava an ideia of what causes this? I'm under mingw32, with wx2.8, sqlite3 .. all installed in mingw. $ make > /d/Miguel/wxsqlite3/bk-deps g++ -c -o wxsqlite3_dll_wxsqlite3.o > -DWXUSINGDLL -I./include -DWXMAKINGDLL_WXSQLITE3 > -DwxUSE_DYNAMIC_SQLITE3_LOAD=0 -DWXSQLITE3_HAVE_METADATA=0 > -DWXSQLITE3_HAVE_CODEC=0 -DWXSQLITE3_HAVE_LOAD_EXTENSION=0 > -I./sqlite3/include -I/usr/local/lib/wx/include/msw-unicode-release-2.8-I/usr/local/include/wx- > 2.8 -DWXUSINGDLL -D__WXMSW__ -mthreads -g0 -O2 ././src/wxsqlite3.cpp > > g++ -shared -o lib/wxsqlite3u.dll wxsqlite3_dll_wxsqlite3.o -L./lib > -Wl,--out-implib=./lib/libwxsqlite3u.dll.a -L./sqlite3/lib > -L/usr/local/lib -mthreads -Wl,--subsystem,windows -mwindows > -lwx_mswu_core-2.8 -lwx_baseu-2.8 -lsqlite3 > Creating library file: ./lib/libwxsqlite3u.dll.a > wxsqlite3_dll_wxsqlite3.o:wxsqlite3.cpp:(.text+0x79): undefined reference > to `_imp___ZN12wxStringBase8InitWithEPKwjj' > wxsqlite3_dll_wxsqlite3.o:wxsqlite3.cpp:(.text+0x195): undefined reference > to `_imp___ZN12wxStringBase8InitWithEPKwjj' > wxsqlite3_dll_wxsqlite3.o:wxsqlite3.cpp:(.text+0x757): undefined reference > to `_imp___ZN8wxString6FormatEPKwz' > wxsqlite3_dll_wxsqlite3.o:wxsqlite3.cpp:(.text+0x790): undefined reference > to `_imp___ZplRK8wxStringPKw' > wxsqlite3_dll_wxsqlite3.o:wxsqlite3.cpp:(.text+0x7f6): undefined reference > to `_imp___ZplRK8wxStringPKw' > wxsqlite3_dll_wxsqlite3.o:wxsqlite3.cpp:(.text+0x822): undefined reference > to `_imp___ZplRK8wxStringPKw' > ... > -- Miguel Cartagena |