Author Topic: Issue buildin default wxsmith project  (Read 6326 times)

Offline Pierrick584

  • Single posting newcomer
  • *
  • Posts: 4
Issue buildin default wxsmith project
« on: June 21, 2011, 04:18:49 am »
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_world

Problem 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.

Code
-------------- 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
 

Code
||=== 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Issue buildin default wxsmith project
« Reply #1 on: June 21, 2011, 04:28:04 am »
Did you install the wxGTK devel package?
If not do so.
If yes, check that wx-config works correctly.

I suggest turning on full compiler logging.
IIRC, FAQ 2.12.

Tim S.

« Last Edit: June 21, 2011, 04:29:39 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Pierrick584

  • Single posting newcomer
  • *
  • Posts: 4
Re: Issue buildin default wxsmith project
« Reply #2 on: June 21, 2011, 04:39:16 am »
just installed libwxgtk2.6-dbg (and 2.8 too)  kinda weird, but in the package description, the 2.6 says its the development package, and still, pretty much same errors
And i dont know enough to actualy do more but, typing wx-config in terminal definitively get its output
Btw, here's the errors after i modified the compiler options
Code
-------------- Build: Debug in wxdoesnotwork ---------------

g++ -I/usr/lib/wx/include/base-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DwxUSE_GUI=0 -pthread  -Wall  -g     -c /home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp -o obj/Debug/wxdoesnotworkApp.o
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/wxdoesnotwork/wxdoesnotworkMain.h:16,
                 from /home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.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/wxdoesnotwork/wxdoesnotworkMain.h:16,
                 from /home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.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/wxdoesnotwork/wxdoesnotworkMain.h:16,
                 from /home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.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/wxdoesnotwork/wxdoesnotworkMain.h:16,
                 from /home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.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/wxdoesnotwork/wxdoesnotworkMain.h:16:0,
                 from /home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.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/wxdoesnotwork/wxdoesnotworkApp.cpp:13:0:
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkMain.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/wxdoesnotwork/wxdoesnotworkMain.h:29:21: error: ‘wxCommandEvent’ has not been declared
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkMain.h:30:22: error: ‘wxCommandEvent’ has not been declared
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp: In function ‘wxAppConsole* wxCreateApp()’:
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp:17:1: error: cannot allocate an object of abstract type ‘wxdoesnotworkApp’
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.h:16:1: note:   because the following virtual functions are pure within ‘wxdoesnotworkApp’:
/usr/include/wx-2.8/wx/app.h:89:17: note: virtual int wxAppConsole::OnRun()
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp: In member function ‘virtual bool wxdoesnotworkApp::OnInit()’:
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp:23:28: error: ‘wxInitAllImageHandlers’ was not declared in this scope
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp:27:13: error: ‘class wxdoesnotworkFrame’ has no member named ‘Show’
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp:28:24: error: ‘SetTopWindow’ was not declared in this scope
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp: In function ‘wxAppConsole* wxCreateApp()’:
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp:17:1: warning: control reaches end of non-void function
Process terminated with status 1 (0 minutes, 1 seconds)
52 errors, 1 warnings
 


Code
/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/wxdoesnotwork/wxdoesnotworkMain.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/wxdoesnotwork/wxdoesnotworkMain.h|29|error: ‘wxCommandEvent’ has not been declared|
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkMain.h|30|error: ‘wxCommandEvent’ has not been declared|
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp||In function ‘wxAppConsole* wxCreateApp()’:|
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp|17|error: cannot allocate an object of abstract type ‘wxdoesnotworkApp’|
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.h|16|note:   because the following virtual functions are pure within ‘wxdoesnotworkApp’:|
/usr/include/wx-2.8/wx/app.h|89|note: virtual int wxAppConsole::OnRun()|
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp||In member function ‘virtual bool wxdoesnotworkApp::OnInit()’:|
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp|23|error: ‘wxInitAllImageHandlers’ was not declared in this scope|
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp|27|error: ‘class wxdoesnotworkFrame’ has no member named ‘Show’|
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp|28|error: ‘SetTopWindow’ was not declared in this scope|
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp||In function ‘wxAppConsole* wxCreateApp()’:|
/home/pierrick/programming/wxdoesnotwork/wxdoesnotworkApp.cpp|17|warning: control reaches end of non-void function|
||=== Build finished: 52 errors, 1 warnings ===|
« Last Edit: June 21, 2011, 04:51:37 am by Pierrick584 »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Issue buildin default wxsmith project
« Reply #3 on: June 21, 2011, 09:06:41 am »
just installed libwxgtk2.6-dbg (and 2.8 too)  kinda weird,
You don't need the debug, but the "devel" package. And make sure you are not mixing wx versions as this will lead to conflicts. You need at least wx v2.8.10. 2.6 is really old and no longer supported (by us).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ