Hello everyone.
I think this topic is like a boomerang - it always comes back
sorry for this but I spent all day and I am going nuts. I've read a lot of posts on forum.
I am using Code:Blocks SVN 4893, windows Vista, mingw 5.1.4, gcc
ok, I have wxWidgets 2.8.8, build like:
mingw32-make -f makefile.gcc USE_XRC=1 MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=debug USE_OPENGL=1
mingw32-make -f makefile.gcc USE_XRC=1 MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release USE_OPENGL=1
mingw32-make -f makefile.gcc USE_XRC=1 MONOLITHIC=1 SHARED=0 UNICODE=1 BUILD=debug USE_OPENGL=1
mingw32-make -f makefile.gcc USE_XRC=1 MONOLITHIC=1 SHARED=0 UNICODE=1 BUILD=release USE_OPENGL=1
so in theory I have static libraries + dll version. DLL applications compile & link like a charm. If I create new test project and disable "DLL linking" (or something like this), it works. But the main project doesnt link at all.
I changed global compiler settings to:
$linker -o $exe_output $libdirs $link_objects $link_resobjects $libs $link_options -mwindows
my linker settings:
libwxmsw28u_gl.a (I tried almost everything here)
libwxpng.a
libwxjpeg.a
libwxtiff.a
libwxzlib.a
search dirs (compiler, linker, resource):
C:\wxWidgets-2.8.8\lib\gcc_lib\mswu
C:\wxWidgets-2.8.8\lib\gcc_lib
C:\wxWidgets-2.8.8\lib\gcc_lib\mswu
still what I get is:
obj\Release_static\dungeon_editorApp.o:dungeon_editorApp.cpp:(.text+0x49)||undefined reference to `_imp___ZN12wxAppConsole17CheckBuildOptionsEPKcS1_'|
obj\Release_static\dungeon_editorApp.o:dungeon_editorApp.cpp:(.text+0x6c)||undefined reference to `_imp___ZN5wxAppC2Ev'|
obj\Release_static\dungeon_editorApp.o:dungeon_editorApp.cpp:(.text+0xd2)||undefined reference to `_imp___ZN12wxAppConsole14ms_appInstanceE'|
obj\Release_static\dungeon_editorApp.o:dungeon_editorApp.cpp:(.text+0x103)||undefined reference to `_imp___Z7wxEntryP11HINSTANCE__S0_Pci'|
obj\Release_static\dungeon_editorApp.o:dungeon_editorApp.cpp:(.text+0x157)||undefined reference to `_imp___Z22wxInitAllImageHandlersv'|
obj\Release_static\dungeon_editorApp.o:dungeon_editorApp.cpp:(.text+0x202)||undefined reference to `_imp___ZN12wxAppConsole12ms_appInitFnE'|
(and so on....) A LOT!
PLEASE HELP! :shock: