I had problems with wxWidgets and gdb when I use shared libs (dll on windows), I receive SIGTRAP and could not debug my application !
You can see my post on WxWidgets forum:
http://forums.wxwidgets.org/viewtopic.php?t=26715So... Simplify, re-build wxWidgets in Monolitic static libs and put all my dll to static libs... All compile perfectly.
WxWidgets is linked, no problems.
but when I linked my application I had lot of undefined reference : the linker don't use the lib I put into the projet properties.
I look, take a lot of time, looking for error... did not found.
Desperate, I try to make a very very simple App with
- exe : command line, hello world !
- static lib : 3 simples function to use.
Modify dependencies, addind libs into exe project.
No way, the function I called into exe file is always undefined reference, the linker cannot see it.
I have used the Code::Blocks templates to create these 2 projects :
- Console application
- Static library
I give you the very very small exemple (3 ko in zip files, contains 3 file sources).
If anybody can help me or say to me, I cannot use Static Library because of a internal bugg of MinGW or Code::Blocks IDE, or I must add options into the compiler...
Help !
[attachment deleted by admin]