I'm not sure if this makes a difference but we are using wx version 2.42. (SuSE 9.0 - wxGTK-2.4.2-1, wxGTK-gl-2.4.2-1, wxGTK-devel-2.4.2-1)
···
----
In file included from /usr/include/wx/defs.h:23,
from /usr/include/wx/wx.h:15,
from include/wx/wxPython/wxPython_int.h:19,
from include/wx/wxPython/wxPython.h:22,
from contrib/stc/gtk/stc_wrap.cpp:1381:
/usr/include/wx/platform.h:85:22: wx/setup.h: No such file or directory
----
These does not seem to be a /usr/include/wx/setup.h ... but I am not sure why that would be ...
there is, however, a /usr/lib/wx/include/gtk-2.4/wx/setup.h. I copied it over to the /usr/include/wx/ and the following occured ...
Here is the full output ...
-------
# python setup.py build
Found wx-config: /usr/bin/wx-config
Using flags: --toolkit=gtk2 --unicode=no --version=2.5
Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--release]
[--basename] [--static] [--libs] [--gl-libs]
[--cppflags] [--cflags] [--cxxflags] [--ldflags] [--rezflags]
[--cc] [--cxx] [--ld]
[--inplace]
wx-config returns configuration information about the installed
version of wxWindows. It may be used to query its version and
installation directories and also retrieve the C and C++ compilers
and linker which were used for its building and the corresponding
flags.
The --inplace flag allows wx-config to be used from the wxWindows
build directory and output flags to use the uninstalled version of
the headers and libs in the build directory. (Currently configure
must be invoked via a full path name for this to work correctly.)
Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--release]
[--basename] [--static] [--libs] [--gl-libs]
[--cppflags] [--cflags] [--cxxflags] [--ldflags] [--rezflags]
[--cc] [--cxx] [--ld]
[--inplace]
wx-config returns configuration information about the installed
version of wxWindows. It may be used to query its version and
installation directories and also retrieve the C and C++ compilers
and linker which were used for its building and the corresponding
flags.
The --inplace flag allows wx-config to be used from the wxWindows
build directory and output flags to use the uninstalled version of
the headers and libs in the build directory. (Currently configure
must be invoked via a full path name for this to work correctly.)
Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--release]
[--basename] [--static] [--libs] [--gl-libs]
[--cppflags] [--cflags] [--cxxflags] [--ldflags] [--rezflags]
[--cc] [--cxx] [--ld]
[--inplace]
wx-config returns configuration information about the installed
version of wxWindows. It may be used to query its version and
installation directories and also retrieve the C and C++ compilers
and linker which were used for its building and the corresponding
flags.
The --inplace flag allows wx-config to be used from the wxWindows
build directory and output flags to use the uninstalled version of
the headers and libs in the build directory. (Currently configure
must be invoked via a full path name for this to work correctly.)
Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--release]
[--basename] [--static] [--libs] [--gl-libs]
[--cppflags] [--cflags] [--cxxflags] [--ldflags] [--rezflags]
[--cc] [--cxx] [--ld]
[--inplace]
wx-config returns configuration information about the installed
version of wxWindows. It may be used to query its version and
installation directories and also retrieve the C and C++ compilers
and linker which were used for its building and the corresponding
flags.
The --inplace flag allows wx-config to be used from the wxWindows
build directory and output flags to use the uninstalled version of
the headers and libs in the build directory. (Currently configure
must be invoked via a full path name for this to work correctly.)
Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--release]
[--basename] [--static] [--libs] [--gl-libs]
[--cppflags] [--cflags] [--cxxflags] [--ldflags] [--rezflags]
[--cc] [--cxx] [--ld]
[--inplace]
wx-config returns configuration information about the installed
version of wxWindows. It may be used to query its version and
installation directories and also retrieve the C and C++ compilers
and linker which were used for its building and the corresponding
flags.
The --inplace flag allows wx-config to be used from the wxWindows
build directory and output flags to use the uninstalled version of
the headers and libs in the build directory. (Currently configure
must be invoked via a full path name for this to work correctly.)
sh: line 1: pkg-config: command not found
Preparing CORE...
Preparing STC...
running build
running build_py
copying wx/__version__.py -> build-gtk2/lib.linux-i686-2.3/wx
copying wx/build/build_options.py -> build-gtk2/lib.linux-i686-2.3/wx/build
running build_ext
building '_stc' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -D_FILE_OFFSET_BITS=64 -DHAVE_LARGEFILE_SUPPORT -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -Wall -fPIC -DSWIG_TYPE_TABLE=wxPython_type_table -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -Iinclude -Isrc -I/usr/include/python2.3 -c contrib/stc/gtk/stc_wrap.cpp -o build-gtk2/temp.linux-i686-2.3/contrib/stc/gtk/stc_wrap.o -O3
In file included from /usr/include/wx/wx.h:15,
from include/wx/wxPython/wxPython_int.h:19,
from include/wx/wxPython/wxPython.h:22,
from contrib/stc/gtk/stc_wrap.cpp:1381:
/usr/include/wx/defs.h:32:2: #error "No Target! You should use wx-config program for compilation flags!"
In file included from /usr/include/wx/intl.h:24,
from /usr/include/wx/wx.h:21,
from include/wx/wxPython/wxPython_int.h:19,
from include/wx/wxPython/wxPython.h:22,
from contrib/stc/gtk/stc_wrap.cpp:1381:
/usr/include/wx/fontenc.h:131:6: #error "Unsupported toolkit"
In file included from /usr/include/wx/gdicmn.h:29,
from /usr/include/wx/event.h:24,
from /usr/include/wx/wx.h:23,
from include/wx/wxPython/wxPython_int.h:19,
from include/wx/wxPython/wxPython.h:22,
from contrib/stc/gtk/stc_wrap.cpp:1381:
/usr/include/wx/font.h:82: error: parse error before `{' token
/usr/include/wx/font.h:104: error: non-member function `bool Ok()' cannot have `const' method qualifier
/usr/include/wx/font.h: In function `bool Ok()':
/usr/include/wx/font.h:104: error: `m_refData' undeclared (first use this function)
/usr/include/wx/font.h:104: error: (Each undeclared identifier is reported only once for each function it appears in.)
/usr/include/wx/font.h: At global scope:
/usr/include/wx/font.h:107: error: non-member function `bool operator==(const wxFont&)' cannot have `const' method qualifier
/usr/include/wx/font.h:107: error: `bool operator==(const wxFont&)' must take exactly two arguments
/usr/include/wx/font.h:108: error: non-member function `bool operator!=(const wxFont&)' cannot have `const' method qualifier
/usr/include/wx/font.h:108: error: `bool operator!=(const wxFont&)' must take exactly two arguments
/usr/include/wx/font.h:111: error: virtual outside class declaration
/usr/include/wx/font.h:111: error: non-member function `int GetPointSize()' cannot have `const' method qualifier
/usr/include/wx/font.h:111: error: function `int GetPointSize()' is initialized like a variable
/usr/include/wx/font.h:112: error: virtual outside class declaration
/usr/include/wx/font.h:112: error: non-member function `int GetFamily()' cannot have `const' method qualifier
/usr/include/wx/font.h:112: error: function `int GetFamily()' is initialized like a variable
/usr/include/wx/font.h:113: error: virtual outside class declaration
/usr/include/wx/font.h:113: error: non-member function `int GetStyle()' cannot have `const' method qualifier
/usr/include/wx/font.h:113: error: function `int GetStyle()' is initialized like a variable
/usr/include/wx/font.h:114: error: virtual outside class declaration
/usr/include/wx/font.h:114: error: non-member function `int GetWeight()' cannot have `const' method qualifier
/usr/include/wx/font.h:114: error: function `int GetWeight()' is initialized like a variable
/usr/include/wx/font.h:115: error: virtual outside class declaration
/usr/include/wx/font.h:115: error: non-member function `bool GetUnderlined()' cannot have `const' method qualifier
/usr/include/wx/font.h:115: error: function `bool GetUnderlined()' is initialized like a variable
/usr/include/wx/font.h:116: error: virtual outside class declaration
/usr/include/wx/font.h:116: error: non-member function `wxString GetFaceName()' cannot have `const' method qualifier
/usr/include/wx/font.h:116: error: function `wxString GetFaceName()' is initialized like a variable
/usr/include/wx/font.h:117: error: virtual outside class declaration
/usr/include/wx/font.h:117: error: non-member function `wxFontEncoding GetEncoding()' cannot have `const' method qualifier
/usr/include/wx/font.h:117: error: function `wxFontEncoding GetEncoding()' is initialized like a variable
/usr/include/wx/font.h:118: error: virtual outside class declaration
/usr/include/wx/font.h:118: error: non-member function `wxNativeFontInfo* GetNativeFontInfo()' cannot have `const' method qualifier
/usr/include/wx/font.h:120: error: virtual outside class declaration
/usr/include/wx/font.h:120: error: non-member function `bool IsFixedWidth()' cannot have `const' method qualifier
/usr/include/wx/font.h:122: error: non-member function `wxString GetNativeFontInfoDesc()' cannot have `const' method qualifier
/usr/include/wx/font.h:123: error: non-member function `wxString GetNativeFontInfoUserDesc()' cannot have `const' method qualifier
/usr/include/wx/font.h:126: error: virtual outside class declaration
/usr/include/wx/font.h:126: error: function `void SetPointSize(int)' is initialized like a variable
/usr/include/wx/font.h:127: error: virtual outside class declaration
/usr/include/wx/font.h:127: error: function `void SetFamily(int)' is initialized like a variable
/usr/include/wx/font.h:128: error: virtual outside class declaration
/usr/include/wx/font.h:128: error: function `void SetStyle(int)' is initialized like a variable
/usr/include/wx/font.h:129: error: virtual outside class declaration
/usr/include/wx/font.h:129: error: function `void SetWeight(int)' is initialized like a variable
/usr/include/wx/font.h:130: error: virtual outside class declaration
/usr/include/wx/font.h:130: error: function `void SetFaceName(const wxString&)' is initialized like a variable
/usr/include/wx/font.h:131: error: virtual outside class declaration
/usr/include/wx/font.h:131: error: function `void SetUnderlined(bool)' is initialized like a variable
/usr/include/wx/font.h:132: error: virtual outside class declaration
/usr/include/wx/font.h:132: error: function `void SetEncoding(wxFontEncoding)' is initialized like a variable
/usr/include/wx/font.h:133: error: virtual outside class declaration
/usr/include/wx/font.h:140: error: non-member function `wxString GetFamilyString()' cannot have `const' method qualifier
/usr/include/wx/font.h:141: error: non-member function `wxString GetStyleString()' cannot have `const' method qualifier
/usr/include/wx/font.h:142: error: non-member function `wxString GetWeightString()' cannot have `const' method qualifier
/usr/include/wx/font.h:145: error: virtual outside class declaration
/usr/include/wx/font.h:146: error: virtual outside class declaration
/usr/include/wx/font.h: In function `wxFontEncoding GetDefaultEncoding()':
/usr/include/wx/font.h:150: error: `ms_encodingDefault' undeclared (first use this function)
/usr/include/wx/font.h: At global scope:
/usr/include/wx/font.h:153: error: parse error before `protected'
In file included from /usr/include/wx/event.h:25,
from /usr/include/wx/wx.h:23,
from include/wx/wxPython/wxPython_int.h:19,
from include/wx/wxPython/wxPython.h:22,
from contrib/stc/gtk/stc_wrap.cpp:1381:
/usr/include/wx/cursor.h: In destructor `wxBusyCursorSuspender::~wxBusyCursorSuspender()':
/usr/include/wx/cursor.h:55: error: invalid use of undefined type `const struct wxCursor'
/usr/include/wx/gdicmn.h:38: error: forward declaration of `const struct wxCursor'
In file included from /usr/include/wx/wx.h:23,
from include/wx/wxPython/wxPython_int.h:19,
from include/wx/wxPython/wxPython.h:22,
from contrib/stc/gtk/stc_wrap.cpp:1381:
/usr/include/wx/event.h: At global scope:
/usr/include/wx/event.h:801: error: field `m_cursor' has incomplete type
/usr/include/wx/event.h: In constructor `wxSetCursorEvent::wxSetCursorEvent(int, int)':
/usr/include/wx/event.h:782: error: class `wxSetCursorEvent' does not have any field named `m_cursor'
/usr/include/wx/event.h: In copy constructor `wxSetCursorEvent::wxSetCursorEvent(const wxSetCursorEvent&)':
/usr/include/wx/event.h:788: error: `m_cursor' undeclared (first use this function)
/usr/include/wx/event.h:788: error: 'const class wxSetCursorEvent' has no member named 'm_cursor'
In file included from /usr/include/wx/app.h:27,
from /usr/include/wx/wx.h:24,
from include/wx/wxPython/wxPython_int.h:19,
from include/wx/wxPython/wxPython.h:22,
from contrib/stc/gtk/stc_wrap.cpp:1381:
/usr/include/wx/window.h: At global scope:
/usr/include/wx/window.h:847: error: `WXWidget' declared as a `virtual' field
/usr/include/wx/window.h:847: error: parse error before `(' token
/usr/include/wx/window.h:901: error: field `m_cursor' has incomplete type
/usr/include/wx/window.h:902: error: field `m_font' has incomplete type
/usr/include/wx/window.h:903: error: field `m_backgroundColour' has incomplete type
/usr/include/wx/window.h:903: error: field `m_foregroundColour' has incomplete type
/usr/include/wx/window.h:910: error: field `m_updateRegion' has incomplete type
/usr/include/wx/window.h:915: error: field `m_acceleratorTable' has incomplete type
/usr/include/wx/window.h:958: error: field `m_palette' has incomplete type
/usr/include/wx/window.h: In member function `virtual void wxWindowBase::SetAcceleratorTable(const wxAcceleratorTable&)':
/usr/include/wx/window.h:519: error: `m_acceleratorTable' undeclared (first use this function)
/usr/include/wx/window.h: In member function `const wxRegion& wxWindowBase::GetUpdateRegion() const':
/usr/include/wx/window.h:591: error: `m_updateRegion' undeclared (first use this function)
/usr/include/wx/window.h: In member function `wxColour wxWindowBase::GetBackgroundColour() const':
/usr/include/wx/window.h:615: error: return type `struct wxColour' is incomplete
/usr/include/wx/window.h:615: error: `m_backgroundColour' undeclared (first use this function)
/usr/include/wx/window.h: In member function `wxColour wxWindowBase::GetForegroundColour() const':
/usr/include/wx/window.h:616: error: return type `struct wxColour' is incomplete
/usr/include/wx/window.h:616: error: `m_foregroundColour' undeclared (first use this function)
/usr/include/wx/window.h: In member function `const wxFont& wxWindowBase::GetFont() const':
/usr/include/wx/window.h:627: error: `m_font' undeclared (first use this function)
/usr/include/wx/window.h: In member function `wxPalette wxWindowBase::GetPalette() const':
/usr/include/wx/window.h:852: error: return type `struct wxPalette' is incomplete
/usr/include/wx/window.h:852: error: `m_palette' undeclared (first use this function)
/usr/include/wx/window.h: In member function `wxWindow* wxWindowBase::GetGrandParent() const':
/usr/include/wx/window.h:1156: error: `GetParent' undeclared (first use this function)
In file included from /usr/include/wx/wx.h:24,
from include/wx/wxPython/wxPython_int.h:19,
from include/wx/wxPython/wxPython.h:22,
from contrib/stc/gtk/stc_wrap.cpp:1381:
/usr/include/wx/app.h: In member function `virtual wxIcon wxAppBase::GetStdIcon(int) const':
/usr/include/wx/app.h:301: error: return type `struct wxIcon' is incomplete
/usr/include/wx/app.h: At global scope:
/usr/include/wx/app.h:456: error: syntax error before `*' token
/usr/include/wx/app.h: In constructor `wxAppInitializer::wxAppInitializer(wxObject*(*)())':
/usr/include/wx/app.h:536: error: `wxApp' undeclared (first use this function)
/usr/include/wx/app.h:536: error: parse error before `;' token
In file included from /usr/include/wx/panel.h:4,
from /usr/include/wx/wx.h:31,
from include/wx/wxPython/wxPython_int.h:19,
from include/wx/wxPython/wxPython.h:22,
from contrib/stc/gtk/stc_wrap.cpp:1381:
/usr/include/wx/generic/panelg.h: At global scope:
/usr/include/wx/generic/panelg.h:35: error: base class `wxWindow' has incomplete type
In file included from /usr/include/wx/frame.h:23,
from /usr/include/wx/wx.h:32,
from include/wx/wxPython/wxPython_int.h:19,
from include/wx/wxPython/wxPython.h:22,
from contrib/stc/gtk/stc_wrap.cpp:1381:
/usr/include/wx/toplevel.h:61: error: base class `wxWindow' has incomplete type
In file included from /usr/include/wx/wx.h:33,
from include/wx/wxPython/wxPython_int.h:19,
from include/wx/wxPython/wxPython.h:22,
from contrib/stc/gtk/stc_wrap.cpp:1381:
/usr/include/wx/dc.h:738: error: field `m_pen' has incomplete type
/usr/include/wx/dc.h:739: error: field `m_brush' has incomplete type
/usr/include/wx/dc.h:740: error: field `m_backgroundBrush' has incomplete type
/usr/include/wx/dc.h:741: error: field `m_textForegroundColour' has incomplete type
/usr/include/wx/dc.h:742: error: field `m_textBackgroundColour' has incomplete type
/usr/include/wx/dc.h:743: error: field `m_font' has incomplete type
/usr/include/wx/dc.h:746: error: field `m_palette' has incomplete type
/usr/include/wx/dc.h: In constructor `wxDCBase::wxDCBase()':
/usr/include/wx/dc.h:122: error: class `wxDCBase' does not have any field named `m_pen'
/usr/include/wx/dc.h:123: error: class `wxDCBase' does not have any field named `m_brush'
/usr/include/wx/dc.h:124: error: class `wxDCBase' does not have any field named `m_backgroundBrush'
/usr/include/wx/dc.h:125: error: class `wxDCBase' does not have any field named `m_textForegroundColour'
/usr/include/wx/dc.h:126: error: class `wxDCBase' does not have any field named `m_textBackgroundColour'
/usr/include/wx/dc.h:127: error: class `wxDCBase' does not have any field named `m_font'
/usr/include/wx/dc.h:129: error: class `wxDCBase' does not have any field named `m_palette'
/usr/include/wx/dc.h: In member function `const wxBrush& wxDCBase::GetBackground() const':
/usr/include/wx/dc.h:429: error: `m_backgroundBrush' undeclared (first use this function)
/usr/include/wx/dc.h: In member function `const wxBrush& wxDCBase::GetBrush() const':
/usr/include/wx/dc.h:430: error: `m_brush' undeclared (first use this function)
/usr/include/wx/dc.h: In member function `const wxPen& wxDCBase::GetPen() const':
/usr/include/wx/dc.h:432: error: `m_pen' undeclared (first use this function)
/usr/include/wx/dc.h: In member function `const wxColour& wxDCBase::GetTextBackground() const':
/usr/include/wx/dc.h:433: error: `m_textBackgroundColour' undeclared (first use this function)
/usr/include/wx/dc.h: In member function `const wxColour& wxDCBase::GetTextForeground() const':
/usr/include/wx/dc.h:434: error: `m_textForegroundColour' undeclared (first use this function)
/usr/include/wx/dc.h: At global scope:
/usr/include/wx/dc.h:803: error: field `m_colFgOld' has incomplete type
/usr/include/wx/dc.h: In constructor `wxDCTextColourChanger::wxDCTextColourChanger(wxDC&)':
/usr/include/wx/dc.h:785: error: class `wxDCTextColourChanger' does not have any field named `m_colFgOld'
/usr/include/wx/dc.h: In destructor `wxDCTextColourChanger::~wxDCTextColourChanger()':
/usr/include/wx/dc.h:789: error: `m_colFgOld' undeclared (first use this function)
/usr/include/wx/dc.h:790: error: `SetTextForeground' undeclared (first use this function)
/usr/include/wx/dc.h: In member function `void wxDCTextColourChanger::Set(const wxColour&)':
/usr/include/wx/dc.h:796: error: `GetTextForeground' undeclared (first use this function)
/usr/include/wx/dc.h:797: error: `SetTextForeground' undeclared (first use this function)
/usr/include/wx/dc.h: In constructor `wxDCClipper::wxDCClipper(wxDC&, const wxRect&)':
/usr/include/wx/dc.h:815: error: `SetClippingRegion' undeclared (first use this function)
/usr/include/wx/dc.h: In constructor `wxDCClipper::wxDCClipper(wxDC&, int, int, int, int)':
/usr/include/wx/dc.h:817: error: `SetClippingRegion' undeclared (first use this function)
/usr/include/wx/dc.h: In destructor `wxDCClipper::~wxDCClipper()':
/usr/include/wx/dc.h:819: error: `DestroyClippingRegion' undeclared (first use this function)
In file included from /usr/include/wx/button.h:36,
from /usr/include/wx/wx.h:38,
from include/wx/wxPython/wxPython_int.h:19,
from include/wx/wxPython/wxPython.h:22,
from contrib/stc/gtk/stc_wrap.cpp:1381:
/usr/include/wx/control.h: At global scope:
/usr/include/wx/control.h:34: error: base class `wxWindow' has incomplete type
/usr/include/wx/control.h: In member function `int wxControlBase::GetAlignment() const':
/usr/include/wx/control.h:51: error: `m_windowStyle' undeclared (first use this function)
In file included from /usr/include/wx/wx.h:38,
from include/wx/wxPython/wxPython_int.h:19,
from include/wx/wxPython/wxPython.h:22,
from contrib/stc/gtk/stc_wrap.cpp:1381:
/usr/include/wx/button.h: At global scope:
/usr/include/wx/button.h:47: error: base class `wxControl' has incomplete type
In file included from /usr/include/wx/wx.h:39,
from include/wx/wxPython/wxPython_int.h:19,
from include/wx/wxPython/wxPython.h:22,
from contrib/stc/gtk/stc_wrap.cpp:1381:
/usr/include/wx/menu.h: In member function `void wxMenuBase::Append(int, const wxString&, const wxString&, wxItemKind)':
/usr/include/wx/menu.h:84: error: incomplete type 'wxMenuItem' cannot be used to name a scope
/usr/include/wx/menu.h: In member function `void wxMenuBase::Append(int, const wxString&, wxMenu*, const wxString&)':
/usr/include/wx/menu.h:113: error: incomplete type 'wxMenuItem' cannot be used to name a scope
/usr/include/wx/menu.h: In member function `void wxMenuBase::Insert(unsigned int, int, const wxString&, const wxString&, wxItemKind)':
/usr/include/wx/menu.h:133: error: incomplete type 'wxMenuItem' cannot be used to name a scope
/usr/include/wx/menu.h: In member function `void wxMenuBase::InsertSeparator(unsigned int)':
/usr/include/wx/menu.h:139: error: incomplete type 'wxMenuItem' cannot be used to name a scope
/usr/include/wx/menu.h: In member function `void wxMenuBase::Insert(unsigned int, int, const wxString&, wxMenu*, const wxString&)':
/usr/include/wx/menu.h:168: error: incomplete type 'wxMenuItem' cannot be used to name a scope
/usr/include/wx/menu.h: At global scope:
/usr/include/wx/menu.h:402: error: base class `wxWindow' has incomplete type
/usr/include/wx/menu.h: In member function `virtual bool wxMenuBarBase::Enable(bool)':
/usr/include/wx/menu.h:497: error: incomplete type 'wxWindow' cannot be used to name a scope
/usr/include/wx/menu.h: In member function `virtual void wxMenuBarBase::SetLabel(const wxString&)':
/usr/include/wx/menu.h:498: error: incomplete type 'wxWindow' cannot be used to name a scope
/usr/include/wx/menu.h: In member function `virtual wxString wxMenuBarBase::GetLabel() const':
/usr/include/wx/menu.h:499: error: incomplete type 'wxWindow' cannot be used to name a scope
In file included from /usr/include/wx/wx.h:46,
from include/wx/wxPython/wxPython_int.h:19,
from include/wx/wxPython/wxPython.h:22,
from contrib/stc/gtk/stc_wrap.cpp:1381:
/usr/include/wx/timer.h: At global scope:
/usr/include/wx/timer.h:135: error: parse error before `&' token
/usr/include/wx/timer.h:135: error: missing ';' before right brace
/usr/include/wx/timer.h:136: error: `wxTimer' was not declared in this scope
/usr/include/wx/timer.h:136: error: `timer' was not declared in this scope
/usr/include/wx/timer.h:136: error: parse error before `,' token
/usr/include/wx/timer.h:136: error: ISO C++ forbids defining types within return type
/usr/include/wx/timer.h:136: error: semicolon missing after declaration of `class wxTimerRunner'
/usr/include/wx/timer.h: In function `void Start(int, bool)':
/usr/include/wx/timer.h:144: error: `m_timer' undeclared (first use this function)
/usr/include/wx/timer.h:148: error: destructors must be member functions
/usr/include/wx/timer.h: In function `void wxTimerRunner()':
/usr/include/wx/timer.h:155: error: parse error before `private'
/usr/include/wx/timer.h:182: error: local class `class wxTimerRunner()::wxTimerEvent' shall not have static data member `wxClassInfo wxTimerRunner()::wxTimerEvent::sm_classwxTimerEvent'
/usr/include/wx/timer.h:182: error: field `wxTimerRunner()::wxTimerEvent::sm_classwxTimerEvent' in local class cannot be static
/usr/include/wx/timer.h:183: confused by earlier errors, bailing out
error: command 'gcc' failed with exit status 1
-------
Robin Dunn wrote:
Steve Milner wrote:
Hello list,
[...]
-I/usr/include/freetype2 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -I/usr/include/python2.3 -c contrib/stc/gtk/stc_wrap.cpp -o build-gtk2/temp.linux-i686-2.3/contrib/stc/gtk/stc_wrap.o -O3
<snip>
contrib/stc/gtk/stc_wrap.cpp: In function `void* _p_wxStyledTextEventTo_p_wxCommandEvent(void*)':
contrib/stc/gtk/stc_wrap.cpp:17484: error: parse error before `)' token
Are you sure there wasn't another error before this one, like not being able to find an include file?
Did you build and install the stc lib? (It's not done automatically by the main wxWidgets make.) One way to find out is if there is a /usr/local/include/wx-2.5/wx/stc directory that contains stc.h.
I assume it uses libstc which is as follows:
/usr/lib/libstdc++-3-libc6.1-2-2.10.0.so
/usr/lib/libstdc++.so.2.7.2.8
/usr/lib/libstdc++.la
/usr/lib/libstdc++.so
/usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
/usr/lib/libstdc++.a
/usr/lib/libstdc++.so.5
/usr/lib/libstdc++-libc6.2-2.so.3
/usr/lib/libstdc++.so.2.8
/usr/lib/libstdc++.so.2.9
/usr/lib/libstdc++.so.2.7.2
/usr/lib/libstdc++.so.2.8.0
/usr/lib/libstdc++.so.2.9.0
/usr/lib/libstdc++.so.5.0.5
/usr/lib/libstdc++-libc6.1-1.so.2
/usr/lib/libstdc++-libc6.1-2.so.3
These are not the stc library, but rather the Standard C++ lib. If you built and installed stc then you should have files named like: /usr/local/lib/libwx_gtk2*_stc_*