• Advertisement
Sign in to follow this  

help with wxwidgets

This topic is 3630 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi i need help with wxwidgets in DevC++ when i compile the example i get these errors
g++.exe -c main.cpp -o main.o -I"lib/gcc/mingw32/3.4.2/include"  -I"include/c++/3.4.2/backward"  -I"include/c++/3.4.2/mingw32"  -I"include/c++/3.4.2"  -I"include"   

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/debug.h:17,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/defs.h:468,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:15,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wxchar.h:429:6: #error "Please define string case-insensitive compare for your OS/compiler"
In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/memory.h:20,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/object.h:20,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:16,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/string.h:170:4: #error "Please define string case-insensitive compare for your OS/compiler"
In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/memory.h:20,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/object.h:20,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:16,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/string.h:419: error: `char wxString::operator[](unsigned int) const' and `char wxString::operator[](size_t) const' cannot be overloaded
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/string.h:423: error: `char& wxString::operator[](unsigned int)' and `char& wxString::operator[](size_t)' cannot be overloaded

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/iostream.h:31,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/memory.h:33,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/object.h:20,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:16,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/gdicmn.h:29,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/event.h:23,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:23,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/font.h:77: error: expected class-name before '{' token

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/font.h: In member function `bool wxFontBase::Ok() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/font.h:90: error: `m_refData' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/font.h:90: error: (Each undeclared identifier is reported only once for each function it appears in.)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/font.h: In member function `wxFontRefData* wxFontBase::GetFontData() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/font.h:130: error: `m_refData' undeclared (first use this function)

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/event.h:24,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:23,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cursor.h: In destructor `wxBusyCursorSuspender::~wxBusyCursorSuspender()':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cursor.h:52: error: invalid use of undefined type `const struct wxCursor'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/gdicmn.h:38: error: forward declaration of `const struct wxCursor'

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:23,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/event.h: At global scope:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/event.h:763: error: field `m_cursor' has incomplete type

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/event.h: In member function `void wxSetCursorEvent::SetCursor(const wxCursor&)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/event.h:757: error: `m_cursor' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/event.h: In member function `const wxCursor& wxSetCursorEvent::GetCursor() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/event.h:758: error: `m_cursor' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/event.h: In member function `bool wxSetCursorEvent::HasCursor() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/event.h:759: error: `m_cursor' undeclared (first use this function)

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/app.h:41,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:24,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h: At global scope:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:427: error: expected `,' or `...' before '&' token
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:429: error: expected `;' before '*' token
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:436: error: expected `;' before "wxPoint"

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:668: error: `WXWidget' does not name a type

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:698: error: field `m_cursor' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:699: error: field `m_font' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:700: error: field `m_backgroundColour' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:700: error: field `m_foregroundColour' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:707: error: field `m_updateRegion' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:712: error: `wxAcceleratorTable' does not name a type

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h: In member function `virtual void wxWindowBase::SetAcceleratorTable(int)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:428: error: `m_acceleratorTable' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:428: error: `accel' undeclared (first use this function)

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h: In member function `const wxRegion& wxWindowBase::GetUpdateRegion() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:477: error: `m_updateRegion' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h: In member function `wxRegion& wxWindowBase::GetUpdateRegion()':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:478: error: `m_updateRegion' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h: In member function `wxColour wxWindowBase::GetBackgroundColour() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:498: error: return type `struct wxColour' is incomplete
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:498: error: `m_backgroundColour' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h: In member function `wxColour wxWindowBase::GetForegroundColour() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:499: error: return type `struct wxColour' is incomplete
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:499: error: `m_foregroundColour' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h: In member function `const wxCursor& wxWindowBase::GetCursor() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:504: error: `m_cursor' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h: In member function `wxCursor& wxWindowBase::GetCursor()':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:505: error: `m_cursor' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h: In member function `const wxFont& wxWindowBase::GetFont() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:510: error: `m_font' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h: In member function `wxFont& wxWindowBase::GetFont()':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:511: error: `m_font' undeclared (first use this function)

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h: In member function `wxWindow* wxWindowBase::GetGrandParent() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:884: error: invalid use of undefined type `struct wxWindow'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/utils.h:41: error: forward declaration of `struct wxWindow'

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:24,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/app.h: At global scope:

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/app.h:307: error: expected init-declarator before '*' token
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/app.h:307: error: expected `,' or `;' before '*' token
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/app.h: In constructor `wxAppInitializer::wxAppInitializer(wxObject*(*)())':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/app.h:366: error: `wxApp' has not been declared
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/app.h:366: error: `SetInitializerFunction' undeclared (first use this function)

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/panel.h:4,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:30,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/generic/panelg.h: At global scope:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/generic/panelg.h:34: error: invalid use of undefined type `struct wxWindow'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/utils.h:41: error: forward declaration of `struct wxWindow'

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:31,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/frame.h:57: error: invalid use of undefined type `struct wxWindow'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/utils.h:41: error: forward declaration of `struct wxWindow'

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/frame.h:216: error: field `m_icon' has incomplete type

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/frame.h: In member function `const wxIcon& wxFrameBase::GetIcon() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/frame.h:89: error: `m_icon' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/frame.h: In member function `virtual void wxFrameBase::SetIcon(const wxIcon&)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/frame.h:92: error: `m_icon' undeclared (first use this function)

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:32,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: At global scope:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:625: error: field `m_pen' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:626: error: field `m_brush' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:627: error: field `m_backgroundBrush' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:628: error: field `m_textForegroundColour' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:629: error: field `m_textBackgroundColour' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:630: error: field `m_font' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:631: error: field `m_palette' has incomplete type

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: In constructor `wxDCBase::wxDCBase()':

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:69: error: `m_backgroundBrush' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:71: error: `m_textForegroundColour' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:72: error: `m_textBackgroundColour' undeclared (first use this function)

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: In member function `const wxBrush& wxDCBase::GetBackground() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:334: error: `m_backgroundBrush' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: In member function `const wxBrush& wxDCBase::GetBrush() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:335: error: `m_brush' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: In member function `const wxFont& wxDCBase::GetFont() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:336: error: `m_font' undeclared (first use this function)

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: In member function `const wxPen& wxDCBase::GetPen() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:337: error: `m_pen' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: In member function `const wxColour& wxDCBase::GetTextBackground() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:338: error: `m_textBackgroundColour' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: In member function `const wxColour& wxDCBase::GetTextForeground() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:339: error: `m_textForegroundColour' undeclared (first use this function)

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: In member function `wxBrush& wxDCBase::GetBackground()':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:342: error: `m_backgroundBrush' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: In member function `wxBrush& wxDCBase::GetBrush()':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:343: error: `m_brush' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: In member function `wxFont& wxDCBase::GetFont()':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:344: error: `m_font' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: In member function `wxPen& wxDCBase::GetPen()':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:345: error: `m_pen' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: In member function `wxColour& wxDCBase::GetTextBackground()':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:346: error: `m_textBackgroundColour' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: In member function `wxColour& wxDCBase::GetTextForeground()':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:347: error: `m_textForegroundColour' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: In member function `virtual void wxDCBase::SetTextForeground(const wxColour&)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:350: error: `m_textForegroundColour' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h: In member function `virtual void wxDCBase::SetTextBackground(const wxColour&)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/dc.h:352: error: `m_textBackgroundColour' undeclared (first use this function)

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:38,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h: In member function `void wxMenuBase::Append(int, const wxString&, const wxString&, bool)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h:81: error: incomplete type `wxMenuItem' used in nested name specifier
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h: In member function `void wxMenuBase::Append(int, const wxString&, wxMenu*, const wxString&)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h:93: error: incomplete type `wxMenuItem' used in nested name specifier
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h: In member function `void wxMenuBase::Insert(size_t, int, const wxString&, const wxString&, bool)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h:111: error: incomplete type `wxMenuItem' used in nested name specifier
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h: In member function `void wxMenuBase::InsertSeparator(size_t)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h:117: error: incomplete type `wxMenuItem' used in nested name specifier
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h: In member function `void wxMenuBase::Insert(size_t, int, const wxString&, wxMenu*, const wxString&)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h:127: error: incomplete type `wxMenuItem' used in nested name specifier

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h: At global scope:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h:298: error: invalid use of undefined type `struct wxWindow'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/utils.h:41: error: forward declaration of `struct wxWindow'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h: In member function `virtual bool wxMenuBarBase::Enable(bool)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h:377: error: incomplete type `wxWindow' used in nested name specifier
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h: In member function `virtual void wxMenuBarBase::SetLabel(const wxString&)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h:378: error: incomplete type `wxWindow' used in nested name specifier

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h: In member function `virtual wxString wxMenuBarBase::GetLabel() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/menu.h:379: error: incomplete type `wxWindow' used in nested name specifier

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:45,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/timer.h: At global scope:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/timer.h:133: error: expected `)' before '&' token
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/timer.h:134: error: expected `)' before '&' token
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/timer.h:154: error: expected `;' before '&' token
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/timer.h: In member function `void wxTimerRunner::Start(int, bool)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/timer.h:142: error: `m_timer' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/timer.h: In destructor `wxTimerRunner::~wxTimerRunner()':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/timer.h:147: error: `m_timer' undeclared (first use this function)

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:21,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:48,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/fontutil.h:65:6: #error "Unsupported toolkit"
In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:48,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h: At global scope:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:49: error: field `dataColour' has incomplete type

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:50: error: field `custColours' has incomplete type

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h: In member function `void wxColourData::SetColour(wxColour&)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:39: error: `dataColour' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h: In member function `wxColour& wxColourData::GetColour()':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:40: error: `dataColour' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h: At global scope:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:90: error: field `fontColour' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:94: error: field `initialFont' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:95: error: field `chosenFont' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h: In member function `void wxFontData::SetColour(const wxColour&)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:64: error: `fontColour' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h: In member function `wxColour& wxFontData::GetColour()':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:65: error: `fontColour' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h: In member function `void wxFontData::SetInitialFont(const wxFont&)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:73: error: `initialFont' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h: In member function `wxFont wxFontData::GetInitialFont() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:74: error: return type `struct wxFont' is incomplete
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:74: error: `initialFont' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h: In member function `void wxFontData::SetChosenFont(const wxFont&)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:76: error: `chosenFont' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h: In member function `wxFont wxFontData::GetChosenFont() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:77: error: return type `struct wxFont' is incomplete
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/cmndata.h:77: error: `chosenFont' undeclared (first use this function)

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/ctrlsub.h:19,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/choice.h:23,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:52,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/control.h: At global scope:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/control.h:30: error: invalid use of undefined type `struct wxWindow'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/utils.h:41: error: forward declaration of `struct wxWindow'
In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/choice.h:23,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:52,

                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/ctrlsub.h:29: error: invalid use of undefined type `struct wxControl'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:45: error: forward declaration of `struct wxControl'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/ctrlsub.h:93: error: `wxClientDataType' does not name a type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/ctrlsub.h: In constructor `wxControlWithItems::wxControlWithItems()':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/ctrlsub.h:31: error: `m_clientDataItemsType' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/ctrlsub.h:31: error: `ClientData_None' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/ctrlsub.h: In member function `bool wxControlWithItems::HasClientObjectData() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/ctrlsub.h:76: error: `m_clientDataItemsType' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/ctrlsub.h:76: error: `ClientData_Object' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/ctrlsub.h: In member function `bool wxControlWithItems::HasClientUntypedData() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/ctrlsub.h:78: error: `m_clientDataItemsType' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/ctrlsub.h:78: error: `ClientData_Void' undeclared (first use this function)

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:60,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/textctrl.h: At global scope:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/textctrl.h:61: error: invalid use of undefined type `struct wxControl'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:45: error: forward declaration of `struct wxControl'

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:69,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/statusbr.h:22: error: invalid use of undefined type `struct wxWindow'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/utils.h:41: error: forward declaration of `struct wxWindow'

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/choicdlg.h:4,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:71,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/generic/choicdgg.h:29: error: expected class-name before '{' token

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/generic/choicdgg.h: In member function `char* wxSingleChoiceDialog::GetSelectionClientData() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/generic/choicdgg.h:72: error: `m_clientData' undeclared (first use this function)

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/textdlg.h:4,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:72,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/generic/textdlgg.h: At global scope:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/generic/textdlgg.h:35: error: expected class-name before '{' token

In file included from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/toolbar.h:15,
                 from F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/wx.h:75,
                 from main.cpp:5:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h:200: error: field `m_bitmap1' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h:201: error: field `m_bitmap2' has incomplete type
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h: In constructor `wxToolBarToolBase::wxToolBarToolBase(wxToolBarBase*, int, const wxBitmap&, const wxBitmap&, bool, wxObject*, const wxString&, const wxString&)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h:79: error: `m_bitmap1' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h:80: error: `m_bitmap2' undeclared (first use this function)

F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h: In constructor `wxToolBarToolBase::wxToolBarToolBase(wxToolBarBase*, wxControl*)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h:94: error: invalid use of undefined type `struct wxControl'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:45: error: forward declaration of `struct wxControl'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h: In member function `const wxBitmap& wxToolBarToolBase::GetBitmap1() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h:132: error: `m_bitmap1' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h: In member function `const wxBitmap& wxToolBarToolBase::GetBitmap2() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h:133: error: `m_bitmap2' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h: In member function `const wxBitmap& wxToolBarToolBase::GetBitmap() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h:136: error: `m_bitmap2' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h:136: error: `m_bitmap1' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h: In member function `wxObject* wxToolBarToolBase::GetClientData() const':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h:145: error: invalid use of undefined type `struct wxControl'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:45: error: forward declaration of `struct wxControl'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h: In member function `void wxToolBarToolBase::SetBitmap1(const wxBitmap&)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h:162: error: `m_bitmap1' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h: In member function `void wxToolBarToolBase::SetBitmap2(const wxBitmap&)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h:163: error: `m_bitmap2' undeclared (first use this function)
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h: In member function `void wxToolBarToolBase::SetClientData(wxObject*)':
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h:169: error: invalid use of undefined type `struct wxControl'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:45: error: forward declaration of `struct wxControl'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h: At global scope:
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/tbarbase.h:216: error: invalid use of undefined type `struct wxControl'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/window.h:45: error: forward declaration of `struct wxControl'

In file included from main.cpp:6:
main.h:8: error: expected class-name before '{' token
main.h:14: error: invalid use of undefined type `struct wxFrame'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/log.h:28: error: forward declaration of `struct wxFrame'
main.h:44: error: incomplete type `wxFrame' used in nested name specifier
main.h:60: error: expected constructor, destructor, or type conversion before '*' token
main.h:60: error: expected `,' or `;' before '*' token
main.h:60: error: `wxCreateApp' was not declared in this scope
main.h: In function `MainApp& wxGetApp()':

main.h:60: error: `wxTheApp' undeclared (first use this function)
In file included from main.cpp:6:
main.h:63:8: warning: extra tokens at end of #endif directive
main.cpp: In member function `virtual bool MainApp::OnInit()':
main.cpp:17: error: 'class AppFrame' has no member named 'Show'
main.cpp: In constructor `AppFrame::AppFrame(const wxString&, const wxPoint&, const wxSize&)':
main.cpp:30: error: type `struct wxFrame' is not a direct base of `AppFrame'
main.cpp:39: error: invalid use of undefined type `struct wxIcon'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/gdicmn.h:40: error: forward declaration of `struct wxIcon'
main.cpp:39: error: `SetIcon' undeclared (first use this function)
main.cpp:42: error: invalid use of undefined type `struct wxMenu'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/event.h:38: error: forward declaration of `struct wxMenu'
main.cpp:43: error: invalid use of undefined type `struct wxMenu'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/event.h:38: error: forward declaration of `struct wxMenu'
main.cpp:44: error: invalid use of undefined type `struct wxMenu'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/event.h:38: error: forward declaration of `struct wxMenu'
main.cpp:45: error: invalid use of undefined type `struct wxMenu'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/event.h:38: error: forward declaration of `struct wxMenu'
main.cpp:47: error: invalid use of undefined type `struct wxMenuBar'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/frame.h:32: error: forward declaration of `struct wxMenuBar'
main.cpp:48: error: invalid use of undefined type `struct wxMenuBar'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/frame.h:32: error: forward declaration of `struct wxMenuBar'
main.cpp:49: error: invalid use of undefined type `struct wxMenuBar'
F:/Dev-CppPortable/App/devcpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/wx/frame.h:32: error: forward declaration of `struct wxMenuBar'
main.cpp:51: error: `SetMenuBar' undeclared (first use this function)
main.cpp:54: error: `CreateStatusBar' undeclared (first use this function)
main.cpp:55: error: `SetStatusText' undeclared (first use this function)
main.cpp: In member function `void AppFrame::OnQuit(wxCommandEvent&)':

main.cpp:67: error: `Close' undeclared (first use this function)
main.cpp: In member function `void AppFrame::OnAbout(wxCommandEvent&)':
main.cpp:77: error: `wxMessageBox' undeclared (first use this function)

make.exe: *** [main.o] Error 1

Execution terminated

the two files are below
/********************
 *  Implementation
 ********************/

#include <wx/wx.h>
#include "main.h"


// program execution "starts" here
bool
MainApp::OnInit()
{
    AppFrame *frame;

    frame = new AppFrame("Application",
                         wxPoint(50, 50), wxSize(450, 340));
    frame->Show(TRUE);

   /* success: wxApp::OnRun() will be called which will enter the main
    * message loop and the application will run. If we returned FALSE
    * here, the application would exit immediately.
    */
    return TRUE;
}


// frame constructor
AppFrame::AppFrame(const wxString &title, const wxPoint &pos,
  const wxSize& size)
  : wxFrame ((wxFrame *) NULL, -1, title, pos, size)
{
    wxMenuBar *menuBar;
    wxMenu *fileMenu;
    wxMenu *helpMenu;

    /* "A" is the name of the application's main icon,
     * as set by Dev-C++
     */
    SetIcon(wxICON(A));

    // create menus
    fileMenu = new wxMenu("", wxMENU_TEAROFF);
    fileMenu->Append(MainApp_Quit, "E&xit\tCtrl-Q", "Quit this program");
    helpMenu = new wxMenu;
    helpMenu->Append(MainApp_About, "&About...\tCtrl-A", "Show about dialog");

    menuBar = new wxMenuBar();
    menuBar->Append(fileMenu, "&File");
    menuBar->Append(helpMenu, "&Help");

    SetMenuBar(menuBar);

    // create a statusbar
    CreateStatusBar(2);
    SetStatusText("Ready.");
}


/*****************
 * event handlers
 *****************/

void
AppFrame::OnQuit(wxCommandEvent &WXUNUSED(event))
{
    // TRUE is to force the frame to close
    Close(TRUE);
}


void
AppFrame::OnAbout(wxCommandEvent &WXUNUSED(event))
{
    wxString msg;

    msg.Printf("Application version 0.1");
    wxMessageBox(msg, "About", wxOK | wxICON_INFORMATION, this);
}



#ifndef _MAIN_H_
#define _MAIN_H_

#include <wx/wx.h>


class MainApp : public wxApp
{
  public:
    virtual bool OnInit(void);
};

class AppFrame : public wxFrame
{
  public:
    AppFrame(const wxString &title, const wxPoint &pos, const wxSize &size);

    // event handlers
    void OnQuit(wxCommandEvent &event);
    void OnAbout(wxCommandEvent &event);
  private:
    // any class wishing to process wxWindows events must use this macro
    DECLARE_EVENT_TABLE()
};

enum
{
    // menu items
    MainApp_Quit = 1,
    MainApp_About
};


/**********************************************************
 * Event tables and other macros for wxWindows
 **********************************************************
 * The event tables connect the wxWindows events with the
 * functions (event handlers) which process them. It can
 * be also done at run-time, but for the simple menu
 * events like this the static method is much simpler.
 *
 **********************************************************/

BEGIN_EVENT_TABLE(AppFrame, wxFrame)
    EVT_MENU(MainApp_Quit,  AppFrame::OnQuit)
    EVT_MENU(MainApp_About, AppFrame::OnAbout)
END_EVENT_TABLE()


/*****************************************************************
 * Create a new application object: this macro will allow
 * wxWindows to create the application object during program
 * execution (it's better than using a static object for many
 * reasons) and also declares the accessor function wxGetApp()
 * which will return the reference of the right type (i.e. MyApp
 * and not wxApp)
 *
 *****************************************************************/

IMPLEMENT_APP(MainApp)


#endif _MAIN_H__



Any help greatly appreciated

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement