Hello, everyone
I'm a beginner of C++ programming and these days I just wanted to try gui programming but encountered a sea of problems.
I'm running Windows7 x64 (does it count?) as well as Code::Blocks10.05(mingw4.4.1) + wxpack 2.8.11
when I was trying to compile and run a simple program(wxsmith, dialogue based, enable unicode) without wxwidgets dll
the compiler notifies me as follow:
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_app.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\app.cpp|174|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_app.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\app.cpp|186|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_app.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\app.cpp|261|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_app.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\app.cpp|332|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_app.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\app.cpp|682|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_app.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\app.cpp|740|more undefined references to `_Unwind_Resume' follow|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_app.o):app.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_main.o)||In function `Z7wxEntryP11HINSTANCE__S0_Pci':|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\main.cpp|386|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_main.o)||In function `~wxScopeGuardImpl2':|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\include\wx\scopeguard.h|203|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_main.o):main.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_imagall.o)||In function `Z22wxInitAllImageHandlersv':|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\imagall.cpp|31|undefined reference to `_Unwind_Resume'|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\imagall.cpp|34|undefined reference to `_Unwind_Resume'|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\imagall.cpp|37|undefined reference to `_Unwind_Resume'|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\imagall.cpp|40|undefined reference to `_Unwind_Resume'|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\imagall.cpp|43|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_imagall.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\imagall.cpp|46|more undefined references to `_Unwind_Resume' follow|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_imagall.o):imagall.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_msw_dialog.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\dialog.cpp|108|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_msw_dialog.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\dialog.cpp|177|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_msw_dialog.o)||In function `wxDialog':|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\dialog.cpp|205|undefined reference to `_Unwind_Resume'|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\dialog.cpp|205|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_msw_dialog.o)||In function `~wxDialog':|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\dialog.cpp|220|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_msw_dialog.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\dialog.cpp|220|more undefined references to `_Unwind_Resume' follow|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_msw_dialog.o):dialog.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_appcmn.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\appcmn.cpp|116|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_appcmn.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\appcmn.cpp|310|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_appcmn.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\appcmn.cpp|312|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_appcmn.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\appcmn.cpp|403|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_appcmn.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\appcmn.cpp|463|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_appcmn.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\appcmn.cpp|525|more undefined references to `_Unwind_Resume' follow|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_appcmn.o):appcmn.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_window.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\window.cpp|409|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_window.o)||In function `~wxWindow':|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\window.cpp|578|undefined reference to `_Unwind_Resume'|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\window.cpp|578|undefined reference to `_Unwind_Resume'|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\window.cpp|578|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_window.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\window.cpp|727|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_window.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\window.cpp|818|more undefined references to `_Unwind_Resume' follow|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_window.o):window.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_ctrlcmn.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\ctrlcmn.cpp|145|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_ctrlcmn.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\ctrlcmn.cpp|146|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_ctrlcmn.o):ctrlcmn.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_msw_control.o)||In function `~wxControl':|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\control.cpp|68|undefined reference to `_Unwind_Resume'|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\control.cpp|68|undefined reference to `_Unwind_Resume'|
C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\control.cpp|68|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_msw_control.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\control.cpp|159|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_msw_control.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\control.cpp|225|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_msw_control.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\control.cpp|313|more undefined references to `_Unwind_Resume' follow|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_msw_control.o):control.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_msw_stattext.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\stattext.cpp|83|undefined reference to `_Unwind_Resume'|
F:\Programming\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud_core.a(corelib_msw_stattext.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\stattext.cpp|179|undefined reference to `_Unwind_Resume'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
while using wxwidgets dll, these problems were all gone(and of course the program I made couldn't run)
Having searched in the forum googled, i got the answer "add '-Wl,-Bdynamic -lgcc_s' in libgcc_s.so" which i couldn't find anywhere. :?
Another solution is to rebuild wxwidgets using preference "SHARED ?= 0" in config.gcc, but it still didn't work……
I'd appreciated it if someone could give me a hand