CodeBlocks und wxSmith installation



  • Hallo zusammen!
    Ich möchte gerne CodeBlocks zusammen mit wxSmith verwenden, leider funktioniert das ganze nicht...

    Ich folge dieser Installationsanleitung: http://www.cse.dmu.ac.uk/~bb/Teaching/8051board/CodeBlocks.htm

    -Zuerst habe ich CodeBlocks 10.05 installiert. Download hier: http://www.codeblocks.org/downloads/26#windows
    (codeblocks-10.05mingw-setup.exe)

    -graphics.h (download to C:\CodeBlocks\MinGW\include)
    -libbgi.a (download to C:\CodeBlocks\MinGW\lib)

    -Installation des wxPack-2.8, download hier: http://wxpack.sourceforge.net/Main/Downloads
    (wxPack_v2.8.12.01.exe)

    Nachdem das alles installiert wurde starte ich CodeBlocks und beginne ein neues Projekt:
    -wxWidgets project
    -select: wxWidgets 2.8.x
    -Preferred GUI Builder: wxSmith
    -Application Type: Frame Based
    -wxWidgets' location: $(#wx)
    -Compiler: GNU GCC Compiler
    -wxWidgets is built as a monolithic library (checked)
    -Enable unicode (checked)

    Unter Settings->Globale Variables habe ich für die Variable wx den Pfad zum wxPack angegeben (C:\CodeBlocks\wxWidgets2.8)

    Klicke ich nun "Build and Run" erhalte ich folgende Fehlermeldungen:

    ||=== Test8, Debug ===|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_string.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\string.cpp|418|undefined reference to \_Unwind\_Resume'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_string.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\common\\string.cpp|495|undefined reference to_Unwind_Resume'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_string.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\string.cpp|542|undefined reference to \_Unwind\_Resume'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_string.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\common\\string.cpp|589|undefined reference to_Unwind_Resume'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_string.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\string.cpp|618|undefined reference to \_Unwind\_Resume'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_string.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\common\\string.cpp|650|more undefined references to_Unwind_Resume' follow|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_string.o):string.cpp:(.eh_frame+0x12)||undefined reference to \_\_gxx\_personality\_v0'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_frame.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\msw\\frame.cpp|145|undefined reference to_Unwind_Resume'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_frame.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\frame.cpp|192|undefined reference to \_Unwind\_Resume'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_frame.o)||In function~wxFrame':|
    C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\frame.cpp|214|undefined reference to \_Unwind\_Resume'| C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\msw\\frame.cpp|214|undefined reference to_Unwind_Resume'|
    C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\frame.cpp|214|undefined reference to \_Unwind\_Resume'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_frame.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\msw\\frame.cpp|336|more undefined references to_Unwind_Resume' follow|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_frame.o):frame.cpp:(.eh_frame+0x12)||undefined reference to \_\_gxx\_personality\_v0'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_gdicmn.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\common\\gdicmn.cpp|270|undefined reference to_Unwind_Resume'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_gdicmn.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\gdicmn.cpp|357|undefined reference to \_Unwind\_Resume'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_gdicmn.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\common\\gdicmn.cpp|357|undefined reference to_Unwind_Resume'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_gdicmn.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\gdicmn.cpp|402|undefined reference to \_Unwind\_Resume'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_gdicmn.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\common\\gdicmn.cpp|428|undefined reference to_Unwind_Resume'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_gdicmn.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\gdicmn.cpp|472|more undefined references to \_Unwind\_Resume' follow| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_gdicmn.o):gdicmn.cpp:(.eh\_frame+0x12)||undefined reference to__gxx_personality_v0'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_event.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\event.cpp|57|undefined reference to \_Unwind\_Resume'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_event.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\common\\event.cpp|62|undefined reference to_Unwind_Resume'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_event.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\event.cpp|63|undefined reference to \_Unwind\_Resume'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_event.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\common\\event.cpp|64|undefined reference to_Unwind_Resume'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_event.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\event.cpp|65|undefined reference to \_Unwind\_Resume'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_event.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\common\\event.cpp|66|more undefined references to_Unwind_Resume' follow|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_event.o):event.cpp:(.eh_frame+0x12)||undefined reference to \_\_gxx\_personality\_v0'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_statbr95.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\msw\\statbr95.cpp|120|undefined reference to_Unwind_Resume'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_statbr95.o)||In function ~wxStatusBar':| C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\msw\\statbr95.cpp|143|undefined reference to_Unwind_Resume'|
    C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\statbr95.cpp|143|undefined reference to \_Unwind\_Resume'| C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\msw\\statbr95.cpp|143|undefined reference to_Unwind_Resume'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_statbr95.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\statbr95.cpp|187|undefined reference to \_Unwind\_Resume'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_statbr95.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\msw\\statbr95.cpp|195|more undefined references to_Unwind_Resume' follow|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_statbr95.o):statbr95.cpp:(.eh_frame+0x12)||undefined reference to \_\_gxx\_personality\_v0'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_msw\_menu.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\msw\\menu.cpp|200|undefined reference to_Unwind_Resume'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_msw_menu.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\menu.cpp|201|undefined reference to \_Unwind_Resume'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_msw\_menu.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\msw\\menu.cpp|212|undefined reference to_Unwind_Resume'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_msw_menu.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\menu.cpp|238|undefined reference to \_Unwind_Resume'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_msw_menu.o)||In function~wxMenu':|
    C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\msw\menu.cpp|261|undefined reference to \_Unwind\_Resume'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_msw\_menu.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\msw\\menu.cpp|261|more undefined references to_Unwind_Resume' follow|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_msw_menu.o):menu.cpp:(.eh_frame+0x12)||undefined reference to \_\_gxx\_personality_v0'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_menucmn.o)||In functionIsNumberedAccelKey':|
    C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\menucmn.cpp|157|undefined reference to \_Unwind\_Resume'| C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\common\\menucmn.cpp|161|undefined reference to_Unwind_Resume'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_menucmn.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\menucmn.cpp|293|undefined reference to \_Unwind\_Resume'| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_menucmn.o):C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\common\\menucmn.cpp|367|undefined reference to_Unwind_Resume'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_menucmn.o)||In function wxMenuItemBase':| C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\common\\menucmn.cpp|404|undefined reference to_Unwind_Resume'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_menucmn.o):C:\BuildAgent\work\wxPack\wxwidgets\build\msw\..\..\src\common\menucmn.cpp|404|more undefined references to \_Unwind\_Resume' follow| C:\\CodeBlocks\\wxWidgets2.8\\lib\\gcc\_lib\\libwxmsw28ud.a(monolib\_menucmn.o):menucmn.cpp:(.eh\_frame+0x12)||undefined reference to__gxx_personality_v0'|
    C:\CodeBlocks\wxWidgets2.8\lib\gcc_lib\libwxmsw28ud.a(monolib_list.o)||In function wxListBase':| C:\\BuildAgent\\work\\wxPack\\wxwidgets\\build\\msw\\..\\..\\src\\common\\list.cpp|157|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 ===|

    Was könnte da bei der Installation schiefgegangen sein?
    Ich bin absoluter Neuling was wxSmith angeht (habe bisher wxDev C++ verwendet) und bräuchte wohl ein wenig Hilfe.

    Danke schonmal, Alberich



  • Lösung fürs erste Problem gefunden:
    -'Use wxWidgets DLL' anstatt 'monolithic library'

    Nächste Hürde: Das Erstellen/Zusammenklicken der GUI
    Ich habe mir das 'Hello World' Beispiel angeschaut und versucht nachzubauen, ich habe aber doch noch so einige Schwierigkeiten dabei. Vorallem die Verwendung der Layout->Sizer (in wxSmith) erschliesst sich mir noch nicht wirklich.
    Gibt es, abgesehen vom oben genannten Tutorial, weitere Lektüre zum Thema CodeBlocks wxSmith? Die google-Suche liefert leider nur die wenigen Beispiele aus dem 'wiki.codeblocks.org'.


Log in to reply