wxwidgets und codeblocks



  • ich habe mir unter Windows CodeBlocks installiert und mir die wxwidgets libs per zip file runter geladen. habe einfach nur mal nen "include wx/wx.h" gemacht und schon da gehen die Probleme los. Die Header Dateien werden wohl gefunden, habe sie im Projekt mit Pfaden festgelegt. Bekomme aber, egal was ich mache, diese Fehlermeldungen. Hat jemand eine Ahnung?

    C:\tmp\wxMSW-2.8.7\include\msvc\wx\setup.h|247|#error "This file should only be included when using Microsoft Visual C++"|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|103|#error "wxUSE_DYNLIB_CLASS must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|111|#error "wxUSE_EXCEPTIONS must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|119|#error "wxUSE_FILESYSTEM must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|127|#error "wxUSE_FS_ARCHIVE must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|140|#error "wxUSE_DYNAMIC_LOADER must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|148|#error "wxUSE_LOG must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|156|#error "wxUSE_LONGLONG must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|164|#error "wxUSE_MIMETYPE must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|180|#error "wxUSE_PRINTF_POS_PARAMS must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|188|#error "wxUSE_PROTOCOL must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|230|#error "wxUSE_REGEX must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|238|#error "wxUSE_STDPATHS must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|246|#error "wxUSE_XML must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|254|#error "wxUSE_SOCKETS must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|262|#error "wxUSE_STREAMS must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|270|#error "wxUSE_STOPWATCH must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|278|#error "wxUSE_TEXTBUFFER must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|286|#error "wxUSE_TEXTFILE must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|302|#error "wxUSE_URL must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|310|#error "wxUSE_VARIANT must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|330|#error "wxUSE_ABOUTDLG must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|338|#error "wxUSE_ACCEL must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|346|#error "wxUSE_ANIMATIONCTRL must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|354|#error "wxUSE_BITMAPCOMBOBOX must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|362|#error "wxUSE_BMPBUTTON must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|370|#error "wxUSE_BUTTON must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|378|#error "wxUSE_CALENDARCTRL must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|386|#error "wxUSE_CARET must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|394|#error "wxUSE_CHECKBOX must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|410|#error "wxUSE_CHOICE must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|418|#error "wxUSE_CHOICEBOOK must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|426|#error "wxUSE_CHOICEDLG must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|434|#error "wxUSE_CLIPBOARD must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|442|#error "wxUSE_COLLPANE must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|450|#error "wxUSE_COLOURDLG must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|458|#error "wxUSE_COLOURPICKERCTRL must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|466|#error "wxUSE_COMBOBOX must be defined."|
    .h|474|#error "wxUSE_COMBOCTRL must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|482|#error "wxUSE_DATAOBJ must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|490|#error "wxUSE_DATAVIEWCTRL must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|498|#error "wxUSE_DATEPICKCTRL must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|506|#error "wxUSE_DIRPICKERCTRL must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|514|#error "wxUSE_DISPLAY must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|522|#error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|530|#error "wxUSE_FILEDLG must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|538|#error "wxUSE_FILEPICKERCTRL must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|546|#error "wxUSE_FONTDLG must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|554|#error "wxUSE_FONTMAP must be defined."|
    C:\tmp\wxMSW-2.8.7\include\wx\chkconf.h|562|#error "wxUSE_FONTPICKERCTRL must be defined."|
    ||More errors follow but not being shown.|
    ||Edit the max errors limit in compiler options...|
    ||=== Build finished: 50 errors, 0 warnings ===|
    


  • Habe mir auch gerade Code:Blocks installiert. Um wxWidgets zu verwenden abe ich mir wxPack geladen uund installiert.

    http://wxpack.sourceforge.net/Tutorials/CodeBlocks



  • wxWidgets braucht verschiedene defines um korrekt zu funktionieren.
    Check mal ob eine "wx/setup.h" existiert.

    Das sind zwei komplett verschiedene Dateien zu verschiedenen Zwecken.
    Wenn also anstatt der "wx/setup.h" die "msvc/wx/setup.h" genommen wird, erklärt das den Fehler.

    Wenn die Datei "wx/setup.h" nicht existert nimmst du die "wx/msw/setup.h" bzw. "wx/msw/setup0.h" und kopirst diese nach "wx/setup.h".

    Gruß
    nurF



  • genau, das war wohl das problem. habe dann die setup.h datei ins wx/wx verzichnis kopiert und diese fehlermeldung ist jetzt weg.


  • Mod

    Hit-Man schrieb:

    genau, das war wohl das problem. habe dann die setup.h datei ins wx/wx verzichnis kopiert und diese fehlermeldung ist jetzt weg.

    Die Setup.h ist Plattformspezifisch, von daher sollte sie in ein eigenes Verzeichnis (da liegt sie auch, wenn man mit MinGW baut). Einfach das Verzeichnis ebenfalls in die Headerpfade aufnehmen, dann klappts.


Anmelden zum Antworten