Author Topic: Compile from source error on Ubuntu 7.10 (gcc 4.1.3)  (Read 4985 times)

greenbox

  • Guest
Compile from source error on Ubuntu 7.10 (gcc 4.1.3)
« on: March 12, 2008, 07:14:35 pm »
I'm not sure what's going on when I try to build Code::Blocks from source, it looks like I don't have the right library version (libwxwidgets-2.8-dev package) or the library isn't linking in the makefile.

Operating system: Ubuntu 7.10
C Compiler: gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)

Any suggestions?

Quote
/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 undefined 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 undefined 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 undefined 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: At global scope:
/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:907: error: 'wxUpdateUIEvent' has not been declared
/usr/include/wx-2.8/wx/window.h:1088: error: 'wxSysColourChangedEvent' has not been declared

Full error log: http://paste.stgraber.org/1492

Offline Seronis

  • Almost regular
  • **
  • Posts: 197
Re: Compile from source error on Ubuntu 7.10 (gcc 4.1.3)
« Reply #1 on: March 13, 2008, 12:23:55 am »
Did you update your copy of wxWidgets to 2.8.7 ?  Searching forums brings up that plus other tips required for  ubuntu.