Greetings, i'm just starting using wxsmith (and gotta say i'm not a C++ and Code::Block expert either) and i were trying this tutorial
http://wiki.codeblocks.org/index.php?title=WxSmith_tutorial:_Hello_worldProblem is, i'm trying to build a freshly made project, nothing done yet, and it does not work, giving me compiller error of undeclared functions, i know we normaly shouldnt post such error here but, realy, i believe a default project shouldnt have such issue without beign modified at all.
I'm running Ubuntu 11.04, got Code::Block and every wxsmith package that are on the Ubuntu Software Center, with pretty much default configuration.
-------------- Build: Release in wxtrololol ---------------
Compiling: wxtrolololApp.cpp
In file included from /usr/include/wx-2.8/wx/window.h:23:0,
from /usr/include/wx-2.8/wx/toplevel.h:21,
from /usr/include/wx-2.8/wx/frame.h:19,
from /home/pierrick/programming/wxtrololol/wxtrolololMain.h:16,
from /home/pierrick/programming/wxtrololol/wxtrolololApp.cpp:13:
/usr/include/wx-2.8/wx/cursor.h: In constructor ‘wxBusyCursorSuspender::wxBusyCursorSuspender()’:
/usr/include/wx-2.8/wx/cursor.h:65:22: error: ‘wxIsBusy’ was not declared in this scope
/usr/include/wx-2.8/wx/cursor.h:67:26: error: ‘wxBusyCursor’ has not been declared
/usr/include/wx-2.8/wx/cursor.h:67:58: error: ‘wxSetCursor’ was not declared in this scope
/usr/include/wx-2.8/wx/cursor.h: In destructor ‘wxBusyCursorSuspender::~wxBusyCursorSuspender()’:
/usr/include/wx-2.8/wx/cursor.h:72:22: error: ‘wxIsBusy’ was not declared in this scope
/usr/include/wx-2.8/wx/cursor.h:74:26: error: ‘wxBusyCursor’ has not been declared
/usr/include/wx-2.8/wx/cursor.h:74:56: error: ‘wxSetCursor’ was not declared in this scope
In file included from /usr/include/wx-2.8/wx/window.h:26:0,
from /usr/include/wx-2.8/wx/toplevel.h:21,
from /usr/include/wx-2.8/wx/frame.h:19,
from /home/pierrick/programming/wxtrololol/wxtrolololMain.h:16,
from /home/pierrick/programming/wxtrololol/wxtrolololApp.cpp:13:
/usr/include/wx-2.8/wx/region.h: In member function ‘bool wxRegionBase::Intersect(const wxRect&)’:
/usr/include/wx-2.8/wx/region.h:251:37: error: invalid use of incomplete type ‘struct wxRegion’
/usr/include/wx-2.8/wx/gdicmn.h:38:28: error: forward declaration of ‘struct wxRegion’
/usr/include/wx-2.8/wx/region.h: In member function ‘bool wxRegionBase::Subtract(const wxRect&)’:
/usr/include/wx-2.8/wx/region.h:256:36: error: invalid use of incomplete type ‘struct wxRegion’
/usr/include/wx-2.8/wx/gdicmn.h:38:28: error: forward declaration of ‘struct wxRegion’
/usr/include/wx-2.8/wx/region.h: In member function ‘bool wxRegionBase::Xor(const wxRect&)’:
/usr/include/wx-2.8/wx/region.h:261:31: error: invalid use of incomplete type ‘struct wxRegion’
/usr/include/wx-2.8/wx/gdicmn.h:38:28: error: forward declaration of ‘struct wxRegion’
In file included from /usr/include/wx-2.8/wx/toplevel.h:21:0,
from /usr/include/wx-2.8/wx/frame.h:19,
from /home/pierrick/programming/wxtrololol/wxtrolololMain.h:16,
from /home/pierrick/programming/wxtrololol/wxtrolololApp.cpp:13:
/usr/include/wx-2.8/wx/window.h: At global scope:
/usr/include/wx-2.8/wx/window.h:82:12: error: field ‘font’ has incomplete type
/usr/include/wx-2.8/wx/window.h:85:14: error: field ‘colFg’ has incomplete type
/usr/include/wx-2.8/wx/window.h:89:14: error: field ‘colBg’ has incomplete type
/usr/include/wx-2.8/wx/window.h:920:35: error: ‘wxUpdateUIEvent’ has not been declared
/usr/include/wx-2.8/wx/window.h:1116:30: error: ‘wxSysColourChangedEvent’ has not been declared
/usr/include/wx-2.8/wx/window.h:1117:24: error: ‘wxInitDialogEvent’ has not been declared
/usr/include/wx-2.8/wx/window.h:1118:25: error: ‘wxMouseEvent’ has not been declared
/usr/include/wx-2.8/wx/window.h:1133:13: error: ‘WXWidget’ does not name a type
/usr/include/wx-2.8/wx/window.h:1135:34: error: ‘WXWidget’ has not been declared
/usr/include/wx-2.8/wx/window.h:1230:26: error: field ‘m_cursor’ has incomplete type
/usr/include/wx-2.8/wx/window.h:1231:26: error: field ‘m_font’ has incomplete type
/usr/include/wx-2.8/wx/window.h:1232:26: error: field ‘m_backgroundColour’ has incomplete type
/usr/include/wx-2.8/wx/window.h:1233:26: error: field ‘m_foregroundColour’ has incomplete type
/usr/include/wx-2.8/wx/window.h:1240:26: error: field ‘m_updateRegion’ has incomplete type
/usr/include/wx-2.8/wx/window.h:562:39: error: ‘wxNavigationKeyEvent’ has not been declared
/usr/include/wx-2.8/wx/window.h: In member function ‘const wxRegion& wxWindowBase::GetUpdateRegion() const’:
/usr/include/wx-2.8/wx/window.h:761:54: error: ‘m_updateRegion’ was not declared in this scope
/usr/include/wx-2.8/wx/window.h: In member function ‘wxRegion& wxWindowBase::GetUpdateRegion()’:
/usr/include/wx-2.8/wx/window.h:762:42: error: ‘m_updateRegion’ was not declared in this scope
/usr/include/wx-2.8/wx/window.h: In member function ‘const wxCursor& wxWindowBase::GetCursor() const’:
/usr/include/wx-2.8/wx/window.h:850:48: error: ‘m_cursor’ was not declared in this scope
/usr/include/wx-2.8/wx/window.h: In member function ‘wxWindow* wxWindowBase::GetGrandParent() const’:
/usr/include/wx-2.8/wx/window.h:1547:31: error: invalid use of incomplete type ‘struct wxWindow’
/usr/include/wx-2.8/wx/utils.h:51:28: error: forward declaration of ‘struct wxWindow’
In file included from /usr/include/wx-2.8/wx/frame.h:19:0,
from /home/pierrick/programming/wxtrololol/wxtrolololMain.h:16,
from /home/pierrick/programming/wxtrololol/wxtrolololApp.cpp:13:
/usr/include/wx-2.8/wx/toplevel.h: At global scope:
/usr/include/wx-2.8/wx/toplevel.h:119:1: error: invalid use of incomplete type ‘struct wxWindow’
/usr/include/wx-2.8/wx/utils.h:51:28: error: forward declaration of ‘struct wxWindow’
/usr/include/wx-2.8/wx/toplevel.h:238:24: error: ‘wxCloseEvent’ has not been declared
/usr/include/wx-2.8/wx/toplevel.h:239:17: error: ‘wxSizeEvent’ has not been declared
/usr/include/wx-2.8/wx/toplevel.h:246:21: error: ‘wxActivateEvent’ has not been declared
/usr/include/wx-2.8/wx/toplevel.h:249:35: error: ‘wxUpdateUIEvent’ has not been declared
/usr/include/wx-2.8/wx/toplevel.h: In member function ‘virtual bool wxTopLevelWindowBase::IsActive()’:
/usr/include/wx-2.8/wx/toplevel.h:183:68: error: ‘FindFocus’ was not declared in this scope
/usr/include/wx-2.8/wx/toplevel.h: In member function ‘virtual bool wxTopLevelWindowBase::IsVisible() const’:
/usr/include/wx-2.8/wx/toplevel.h:235:53: error: ‘IsShown’ was not declared in this scope
/usr/include/wx-2.8/wx/toplevel.h: In member function ‘virtual void wxTopLevelWindowBase::DoGetScreenPosition(int*, int*) const’:
/usr/include/wx-2.8/wx/toplevel.h:273:27: error: ‘DoGetPosition’ was not declared in this scope
In file included from /home/pierrick/programming/wxtrololol/wxtrolololMain.h:16:0,
from /home/pierrick/programming/wxtrololol/wxtrolololApp.cpp:13:
/usr/include/wx-2.8/wx/frame.h: At global scope:
/usr/include/wx-2.8/wx/frame.h:53:1: error: expected class-name before ‘{’ token
In file included from /home/pierrick/programming/wxtrololol/wxtrolololApp.cpp:13:0:
/home/pierrick/programming/wxtrololol/wxtrolololMain.h:20:1: error: invalid use of incomplete type ‘struct wxFrame’
/usr/include/wx-2.8/wx/utils.h:50:28: error: forward declaration of ‘struct wxFrame’
/home/pierrick/programming/wxtrololol/wxtrolololMain.h:29:21: error: ‘wxCommandEvent’ has not been declared
/home/pierrick/programming/wxtrololol/wxtrolololMain.h:30:22: error: ‘wxCommandEvent’ has not been declared
/home/pierrick/programming/wxtrololol/wxtrolololApp.cpp: In function ‘wxAppConsole* wxCreateApp()’:
/home/pierrick/programming/wxtrololol/wxtrolololApp.cpp:17:1: error: cannot allocate an object of abstract type ‘wxtrolololApp’
/home/pierrick/programming/wxtrololol/wxtrolololApp.h:16:1: note: because the following virtual functions are pure within ‘wxtrolololApp’:
/usr/include/wx-2.8/wx/app.h:89:17: note: virtual int wxAppConsole::OnRun()
/home/pierrick/programming/wxtrololol/wxtrolololApp.cpp: In member function ‘virtual bool wxtrolololApp::OnInit()’:
/home/pierrick/programming/wxtrololol/wxtrolololApp.cpp:23:28: error: ‘wxInitAllImageHandlers’ was not declared in this scope
Process terminated with status 1 (0 minutes, 1 seconds)
50 errors, 0 warnings
||=== wxtrololol, Release ===|
/usr/include/wx-2.8/wx/cursor.h||In constructor ‘wxBusyCursorSuspender::wxBusyCursorSuspender()’:|
/usr/include/wx-2.8/wx/cursor.h|65|error: ‘wxIsBusy’ was not declared in this scope|
/usr/include/wx-2.8/wx/cursor.h|67|error: ‘wxBusyCursor’ has not been declared|
/usr/include/wx-2.8/wx/cursor.h|67|error: ‘wxSetCursor’ was not declared in this scope|
/usr/include/wx-2.8/wx/cursor.h||In destructor ‘wxBusyCursorSuspender::~wxBusyCursorSuspender()’:|
/usr/include/wx-2.8/wx/cursor.h|72|error: ‘wxIsBusy’ was not declared in this scope|
/usr/include/wx-2.8/wx/cursor.h|74|error: ‘wxBusyCursor’ has not been declared|
/usr/include/wx-2.8/wx/cursor.h|74|error: ‘wxSetCursor’ was not declared in this scope|
/usr/include/wx-2.8/wx/region.h||In member function ‘bool wxRegionBase::Intersect(const wxRect&)’:|
/usr/include/wx-2.8/wx/region.h|251|error: invalid use of incomplete type ‘struct wxRegion’|
/usr/include/wx-2.8/wx/gdicmn.h|38|error: forward declaration of ‘struct wxRegion’|
/usr/include/wx-2.8/wx/region.h||In member function ‘bool wxRegionBase::Subtract(const wxRect&)’:|
/usr/include/wx-2.8/wx/region.h|256|error: invalid use of incomplete type ‘struct wxRegion’|
/usr/include/wx-2.8/wx/gdicmn.h|38|error: forward declaration of ‘struct wxRegion’|
/usr/include/wx-2.8/wx/region.h||In member function ‘bool wxRegionBase::Xor(const wxRect&)’:|
/usr/include/wx-2.8/wx/region.h|261|error: invalid use of incomplete type ‘struct wxRegion’|
/usr/include/wx-2.8/wx/gdicmn.h|38|error: forward declaration of ‘struct wxRegion’|
/usr/include/wx-2.8/wx/window.h|82|error: field ‘font’ has incomplete type|
/usr/include/wx-2.8/wx/window.h|85|error: field ‘colFg’ has incomplete type|
/usr/include/wx-2.8/wx/window.h|89|error: field ‘colBg’ has incomplete type|
/usr/include/wx-2.8/wx/window.h|920|error: ‘wxUpdateUIEvent’ has not been declared|
/usr/include/wx-2.8/wx/window.h|1116|error: ‘wxSysColourChangedEvent’ has not been declared|
/usr/include/wx-2.8/wx/window.h|1117|error: ‘wxInitDialogEvent’ has not been declared|
/usr/include/wx-2.8/wx/window.h|1118|error: ‘wxMouseEvent’ has not been declared|
/usr/include/wx-2.8/wx/window.h|1133|error: ‘WXWidget’ does not name a type|
/usr/include/wx-2.8/wx/window.h|1135|error: ‘WXWidget’ has not been declared|
/usr/include/wx-2.8/wx/window.h|1230|error: field ‘m_cursor’ has incomplete type|
/usr/include/wx-2.8/wx/window.h|1231|error: field ‘m_font’ has incomplete type|
/usr/include/wx-2.8/wx/window.h|1232|error: field ‘m_backgroundColour’ has incomplete type|
/usr/include/wx-2.8/wx/window.h|1233|error: field ‘m_foregroundColour’ has incomplete type|
/usr/include/wx-2.8/wx/window.h|1240|error: field ‘m_updateRegion’ has incomplete type|
/usr/include/wx-2.8/wx/window.h|562|error: ‘wxNavigationKeyEvent’ has not been declared|
/usr/include/wx-2.8/wx/window.h||In member function ‘const wxRegion& wxWindowBase::GetUpdateRegion() const’:|
/usr/include/wx-2.8/wx/window.h|761|error: ‘m_updateRegion’ was not declared in this scope|
/usr/include/wx-2.8/wx/window.h||In member function ‘wxRegion& wxWindowBase::GetUpdateRegion()’:|
/usr/include/wx-2.8/wx/window.h|762|error: ‘m_updateRegion’ was not declared in this scope|
/usr/include/wx-2.8/wx/window.h||In member function ‘const wxCursor& wxWindowBase::GetCursor() const’:|
/usr/include/wx-2.8/wx/window.h|850|error: ‘m_cursor’ was not declared in this scope|
/usr/include/wx-2.8/wx/window.h||In member function ‘wxWindow* wxWindowBase::GetGrandParent() const’:|
/usr/include/wx-2.8/wx/window.h|1547|error: invalid use of incomplete type ‘struct wxWindow’|
/usr/include/wx-2.8/wx/utils.h|51|error: forward declaration of ‘struct wxWindow’|
/usr/include/wx-2.8/wx/toplevel.h|119|error: invalid use of incomplete type ‘struct wxWindow’|
/usr/include/wx-2.8/wx/utils.h|51|error: forward declaration of ‘struct wxWindow’|
/usr/include/wx-2.8/wx/toplevel.h|238|error: ‘wxCloseEvent’ has not been declared|
/usr/include/wx-2.8/wx/toplevel.h|239|error: ‘wxSizeEvent’ has not been declared|
/usr/include/wx-2.8/wx/toplevel.h|246|error: ‘wxActivateEvent’ has not been declared|
/usr/include/wx-2.8/wx/toplevel.h|249|error: ‘wxUpdateUIEvent’ has not been declared|
/usr/include/wx-2.8/wx/toplevel.h||In member function ‘virtual bool wxTopLevelWindowBase::IsActive()’:|
/usr/include/wx-2.8/wx/toplevel.h|183|error: ‘FindFocus’ was not declared in this scope|
/usr/include/wx-2.8/wx/toplevel.h||In member function ‘virtual bool wxTopLevelWindowBase::IsVisible() const’:|
/usr/include/wx-2.8/wx/toplevel.h|235|error: ‘IsShown’ was not declared in this scope|
/usr/include/wx-2.8/wx/toplevel.h||In member function ‘virtual void wxTopLevelWindowBase::DoGetScreenPosition(int*, int*) const’:|
/usr/include/wx-2.8/wx/toplevel.h|273|error: ‘DoGetPosition’ was not declared in this scope|
/usr/include/wx-2.8/wx/frame.h|53|error: expected class-name before ‘{’ token|
/home/pierrick/programming/wxtrololol/wxtrolololMain.h|20|error: invalid use of incomplete type ‘struct wxFrame’|
/usr/include/wx-2.8/wx/utils.h|50|error: forward declaration of ‘struct wxFrame’|
/home/pierrick/programming/wxtrololol/wxtrolololMain.h|29|error: ‘wxCommandEvent’ has not been declared|
/home/pierrick/programming/wxtrololol/wxtrolololMain.h|30|error: ‘wxCommandEvent’ has not been declared|
/home/pierrick/programming/wxtrololol/wxtrolololApp.cpp||In function ‘wxAppConsole* wxCreateApp()’:|
/home/pierrick/programming/wxtrololol/wxtrolololApp.cpp|17|error: cannot allocate an object of abstract type ‘wxtrolololApp’|
/home/pierrick/programming/wxtrololol/wxtrolololApp.h|16|note: because the following virtual functions are pure within ‘wxtrolololApp’:|
/usr/include/wx-2.8/wx/app.h|89|note: virtual int wxAppConsole::OnRun()|
/home/pierrick/programming/wxtrololol/wxtrolololApp.cpp||In member function ‘virtual bool wxtrolololApp::OnInit()’:|
/home/pierrick/programming/wxtrololol/wxtrolololApp.cpp|23|error: ‘wxInitAllImageHandlers’ was not declared in this scope|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
By the way i tried debug and release, pretty much same things