C++ Präprozessorfehler



  • Hallo,

    ich bin dabei ein paar Programme unter Turbo C++ mit der Nutzung von msys und Bibiliotheken von fftw, wx. nun habe immer Fehlermeldung in wx/chkconf.h:
    quellecode: /*
    * Name: wx/chkconf.h
    * Purpose: check the config settings for consistency
    * Author: Vadim Zeitlin
    * Modified by:
    * Created: 09.08.00
    * RCS-ID: $Id: chkconf.h 48113 2007-08-15 17:43:50Z DE $
    * Copyright: (c) 2000 Vadim Zeitlin vadim@wxwidgets.org
    * Licence: wxWindows licence
    */

    /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */

    /*
    Platform-specific checking.
    */

    #if defined(__WXPALMOS__)
    # include "wx/palmos/chkconf.h"
    #elif defined(__WXWINCE__)
    # include "wx/msw/wince/chkconf.h"
    #elif defined(__WXMSW__)
    # include "wx/msw/chkconf.h"
    #elif defined(__WXMAC__)
    # include "wx/mac/chkconf.h"
    #elif defined(__OS2__)
    # include "wx/os2/chkconf.h"
    #elif defined(__WXMGL__)
    # include "wx/mgl/chkconf.h"
    #elif defined(__WXDFB__)
    # include "wx/dfb/chkconf.h"
    #elif defined(__WXMOTIF__)
    # include "wx/motif/chkconf.h"
    #elif defined(__WXX11__)
    # include "wx/x11/chkconf.h"
    #endif

    #ifdef __WXUNIVERSAL__
    # include "wx/univ/chkconf.h"
    #endif

    /*
    this global setting determines what should we do if the setting FOO
    requires BAR and BAR is not set: we can either silently unset FOO as well
    (do this if you're trying to build the smallest possible library) or give an
    error and abort (default as leads to least surprizing behaviour)
    */
    #define wxABORT_ON_CONFIG_ERROR

    /*
    global features
    */

    /* GUI build by default /
    #if !defined(wxUSE_GUI)
    # define wxUSE_GUI 1
    #endif /
    !defined(wxUSE_GUI) */

    /* Turn off wxUSE_ABI_INCOMPATIBLE_FEATURES if not specified. /
    #if !defined(wxUSE_ABI_INCOMPATIBLE_FEATURES)
    # define wxUSE_ABI_INCOMPATIBLE_FEATURES 0
    #endif /
    !defined(wxUSE_ABI_INCOMPATIBLE_FEATURES) */

    /*
    If we're compiling without support for threads/exceptions we have to
    disable the corresponding features.
    /
    #ifdef wxNO_THREADS
    # undef wxUSE_THREADS
    # define wxUSE_THREADS 0
    #endif /
    wxNO_THREADS */

    #ifdef wxNO_EXCEPTIONS
    # undef wxUSE_EXCEPTIONS
    # define wxUSE_EXCEPTIONS 0
    #endif /* wxNO_EXCEPTIONS */

    /* we also must disable exceptions if compiler doesn't support them /
    #if defined(_MSC_VER) && !defined(_CPPUNWIND)
    # undef wxUSE_EXCEPTIONS
    # define wxUSE_EXCEPTIONS 0
    #endif /
    VC++ without exceptions support */

    /*
    tests for non GUI features

    please keep the options in alphabetical order!
    */

    #ifndef wxUSE_CRASHREPORT
    /* this one is special: as currently it is Windows-only, don't force it
    to be defined on other platforms /
    # if defined(wxABORT_ON_CONFIG_ERROR) && defined(__WXMSW__)
    # error "wxUSE_CRASHREPORT must be defined."
    # else
    # define wxUSE_CRASHREPORT 0
    # endif
    #endif /
    !defined(wxUSE_CRASHREPORT) */
    ....

    Fehlermeldung: [C++ Fataler Fehler] chkconf.h(95): F1003 error-Anweisung: "wxUSE_CRASHREPORT must be defined."

    ich weiß echt nicht warum hier falsch sein könnte? und wie kann den Fehler beheben??? bin sehr verzweifelt...

    valentin


  • Mod

    Ich denke deine wx.h oder ein ähnlicher config header von wx wird nicht gefunden.

    phlox



  • das vermute ich auch. aber es sind so viele headers, welche fehlt? nach wx.h und chkcong.h habe schon nachgeschaut und nachgetragen, die Fehlermeldung kommt trotzdem...



  • phlox81 schrieb:

    Ich denke deine wx.h oder ein ähnlicher config header von wx wird nicht gefunden.

    phlox

    ich hatte zuerst die Fehlermeldung: [BCC32
    Error] platform.h(196): E2209 Unable to open include file 'wx/setup.h'

    nachdem ich das Include-Pfad: ...\msys\1.0\lib\wx\wxWdigets-2.8.10\include\msvc in c++ Builder eingefügt habe, ist diese Fehlermeldung weg, aber dafür der andere Fehler mit dem Präprozessor. Wo habe ich falsch gemacht????
    Valentin


Anmelden zum Antworten