I'm just start trying codelite today.
My enviroment:
Ubuntu 9.10 + gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1 + CodeLite 2.1.0.3584
After grabbing the .deb file ( codelite_2.1.0.3584-ubuntu0_i386.deb ) from http://sourceforge.net/projects/codelite/files/ ,
I did a fresh installation of codelite.
It works ok but buggy from time to time.
Firstly, I created a new workspace as well as a new wxWidget project by picking up
Simple executable (wxWidgets en...
Then, problems come. Whenever I tried to compile "main.cpp", I will obtain a a lot of error messages.
Code is right as follows:
Code: Select all
/*********************************************************************
* Name: main.cpp
* Purpose: Illustrates initialization and usage of wxWidgets in
* console applications.
* Author:
* Created:
* Copyright:
* License: wxWidgets license (www.wxwidgets.org)
*
* Notes:
*********************************************************************/
// main wxWidgets header file
#include <wx/wx.h>
int main( int argc, char** argv )
{
// initialize wxWidgets
wxInitializer init;
wxPrintf( wxT("Hello in wxWidgets World!\n\n") );
// print some system info...
wxPuts(wxGetHomeDir());
wxPuts(wxGetOsDescription());
wxPuts(wxGetUserName());
wxPuts(wxGetFullHostName());
long mem = wxGetFreeMemory().ToLong();
wxPrintf(wxT("Memory: %ld\n"), mem);
return 0;
}
----------Build Started--------
/bin/sh -c '"make" -j 2 -f "wxTest1.mk" ./Debug/main.o'
----------Building project:[ wxTest1 - Debug ] (Single File Build)----------
Warning: No config found to match: /usr/bin/wx-config --cxxflags --unicode=yes --debug=yes
in /usr/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
Warning: No config found to match: /usr/bin/wx-config --debug=yes --libs --unicode=yes
in /usr/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.
g++ -c "/home/jiapei/MyPrograms/codelite/main.cpp" -g -D__WX__ -o ./Debug/main.o "-I." "-I/usr/include/wx-2.8"
In file included from /usr/include/wx-2.8/wx/defs.h:21,
from /usr/include/wx-2.8/wx/wx.h:15,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/platform.h:196:22: error: wx/setup.h: No such file or directory
In file included from /usr/include/wx-2.8/wx/platform.h:293,
from /usr/include/wx-2.8/wx/defs.h:21,
from /usr/include/wx-2.8/wx/wx.h:15,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/chkconf.h:103:9: error: #error "wxUSE_DYNLIB_CLASS must be defined."
/usr/include/wx-2.8/wx/chkconf.h:111:9: error: #error "wxUSE_EXCEPTIONS must be defined."
/usr/include/wx-2.8/wx/chkconf.h:119:9: error: #error "wxUSE_FILESYSTEM must be defined."
/usr/include/wx-2.8/wx/chkconf.h:127:9: error: #error "wxUSE_FS_ARCHIVE must be defined."
/usr/include/wx-2.8/wx/chkconf.h:140:9: error: #error "wxUSE_DYNAMIC_LOADER must be defined."
/usr/include/wx-2.8/wx/chkconf.h:148:9: error: #error "wxUSE_LOG must be defined."
/usr/include/wx-2.8/wx/chkconf.h:156:9: error: #error "wxUSE_LONGLONG must be defined."
/usr/include/wx-2.8/wx/chkconf.h:164:9: error: #error "wxUSE_MIMETYPE must be defined."
/usr/include/wx-2.8/wx/chkconf.h:172:9: error: #error "wxUSE_ON_FATAL_EXCEPTION must be defined."
/usr/include/wx-2.8/wx/chkconf.h:180:9: error: #error "wxUSE_PRINTF_POS_PARAMS must be defined."
/usr/include/wx-2.8/wx/chkconf.h:188:9: error: #error "wxUSE_PROTOCOL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:230:9: error: #error "wxUSE_REGEX must be defined."
/usr/include/wx-2.8/wx/chkconf.h:238:9: error: #error "wxUSE_STDPATHS must be defined."
/usr/include/wx-2.8/wx/chkconf.h:246:9: error: #error "wxUSE_XML must be defined."
/usr/include/wx-2.8/wx/chkconf.h:254:9: error: #error "wxUSE_SOCKETS must be defined."
/usr/include/wx-2.8/wx/chkconf.h:262:9: error: #error "wxUSE_STREAMS must be defined."
/usr/include/wx-2.8/wx/chkconf.h:270:9: error: #error "wxUSE_STOPWATCH must be defined."
/usr/include/wx-2.8/wx/chkconf.h:278:9: error: #error "wxUSE_TEXTBUFFER must be defined."
/usr/include/wx-2.8/wx/chkconf.h:286:9: error: #error "wxUSE_TEXTFILE must be defined."
/usr/include/wx-2.8/wx/chkconf.h:302:9: error: #error "wxUSE_URL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:310:9: error: #error "wxUSE_VARIANT must be defined."
/usr/include/wx-2.8/wx/chkconf.h:330:9: error: #error "wxUSE_ABOUTDLG must be defined."
/usr/include/wx-2.8/wx/chkconf.h:338:9: error: #error "wxUSE_ACCEL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:346:9: error: #error "wxUSE_ANIMATIONCTRL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:354:9: error: #error "wxUSE_BITMAPCOMBOBOX must be defined."
/usr/include/wx-2.8/wx/chkconf.h:362:9: error: #error "wxUSE_BMPBUTTON must be defined."
/usr/include/wx-2.8/wx/chkconf.h:370:9: error: #error "wxUSE_BUTTON must be defined."
/usr/include/wx-2.8/wx/chkconf.h:378:9: error: #error "wxUSE_CALENDARCTRL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:386:9: error: #error "wxUSE_CARET must be defined."
/usr/include/wx-2.8/wx/chkconf.h:394:9: error: #error "wxUSE_CHECKBOX must be defined."
/usr/include/wx-2.8/wx/chkconf.h:402:9: error: #error "wxUSE_CHECKLISTBOX must be defined."
/usr/include/wx-2.8/wx/chkconf.h:410:9: error: #error "wxUSE_CHOICE must be defined."
/usr/include/wx-2.8/wx/chkconf.h:418:9: error: #error "wxUSE_CHOICEBOOK must be defined."
/usr/include/wx-2.8/wx/chkconf.h:426:9: error: #error "wxUSE_CHOICEDLG must be defined."
/usr/include/wx-2.8/wx/chkconf.h:434:9: error: #error "wxUSE_CLIPBOARD must be defined."
/usr/include/wx-2.8/wx/chkconf.h:442:9: error: #error "wxUSE_COLLPANE must be defined."
/usr/include/wx-2.8/wx/chkconf.h:450:9: error: #error "wxUSE_COLOURDLG must be defined."
/usr/include/wx-2.8/wx/chkconf.h:458:9: error: #error "wxUSE_COLOURPICKERCTRL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:466:9: error: #error "wxUSE_COMBOBOX must be defined."
/usr/include/wx-2.8/wx/chkconf.h:474:9: error: #error "wxUSE_COMBOCTRL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:482:9: error: #error "wxUSE_DATAOBJ must be defined."
/usr/include/wx-2.8/wx/chkconf.h:490:9: error: #error "wxUSE_DATAVIEWCTRL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:498:9: error: #error "wxUSE_DATEPICKCTRL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:506:9: error: #error "wxUSE_DIRPICKERCTRL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:514:9: error: #error "wxUSE_DISPLAY must be defined."
/usr/include/wx-2.8/wx/chkconf.h:522:9: error: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
/usr/include/wx-2.8/wx/chkconf.h:530:9: error: #error "wxUSE_FILEDLG must be defined."
/usr/include/wx-2.8/wx/chkconf.h:538:9: error: #error "wxUSE_FILEPICKERCTRL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:546:9: error: #error "wxUSE_FONTDLG must be defined."
/usr/include/wx-2.8/wx/chkconf.h:554:9: error: #error "wxUSE_FONTMAP must be defined."
/usr/include/wx-2.8/wx/chkconf.h:562:9: error: #error "wxUSE_FONTPICKERCTRL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:570:9: error: #error "wxUSE_GAUGE must be defined."
/usr/include/wx-2.8/wx/chkconf.h:578:9: error: #error "wxUSE_GRAPHICS_CONTEXT must be defined."
/usr/include/wx-2.8/wx/chkconf.h:587:9: error: #error "wxUSE_GRID must be defined."
/usr/include/wx-2.8/wx/chkconf.h:595:9: error: #error "wxUSE_HELP must be defined."
/usr/include/wx-2.8/wx/chkconf.h:603:9: error: #error "wxUSE_HYPERLINKCTRL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:611:9: error: #error "wxUSE_HTML must be defined."
/usr/include/wx-2.8/wx/chkconf.h:632:9: error: #error "wxUSE_ICO_CUR must be defined."
/usr/include/wx-2.8/wx/chkconf.h:640:9: error: #error "wxUSE_IFF must be defined."
/usr/include/wx-2.8/wx/chkconf.h:648:9: error: #error "wxUSE_IMAGLIST must be defined."
/usr/include/wx-2.8/wx/chkconf.h:656:9: error: #error "wxUSE_JOYSTICK must be defined."
/usr/include/wx-2.8/wx/chkconf.h:664:9: error: #error "wxUSE_LISTBOOK must be defined."
/usr/include/wx-2.8/wx/chkconf.h:672:9: error: #error "wxUSE_LISTBOX must be defined."
/usr/include/wx-2.8/wx/chkconf.h:680:9: error: #error "wxUSE_LISTCTRL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:688:9: error: #error "wxUSE_LOGGUI must be defined."
/usr/include/wx-2.8/wx/chkconf.h:696:9: error: #error "wxUSE_LOGWINDOW must be defined."
/usr/include/wx-2.8/wx/chkconf.h:704:9: error: #error "wxUSE_LOG_DIALOG must be defined."
/usr/include/wx-2.8/wx/chkconf.h:712:9: error: #error "wxUSE_MDI must be defined."
/usr/include/wx-2.8/wx/chkconf.h:720:9: error: #error "wxUSE_MDI_ARCHITECTURE must be defined."
/usr/include/wx-2.8/wx/chkconf.h:728:9: error: #error "wxUSE_MENUS must be defined."
/usr/include/wx-2.8/wx/chkconf.h:736:9: error: #error "wxUSE_MSGDLG must be defined."
/usr/include/wx-2.8/wx/chkconf.h:744:9: error: #error "wxUSE_NOTEBOOK must be defined."
/usr/include/wx-2.8/wx/chkconf.h:752:9: error: #error "wxUSE_ODCOMBOBOX must be defined."
/usr/include/wx-2.8/wx/chkconf.h:760:9: error: #error "wxUSE_PALETTE must be defined."
/usr/include/wx-2.8/wx/chkconf.h:768:9: error: #error "wxUSE_POPUPWIN must be defined."
/usr/include/wx-2.8/wx/chkconf.h:776:9: error: #error "wxUSE_PRINTING_ARCHITECTURE must be defined."
/usr/include/wx-2.8/wx/chkconf.h:784:9: error: #error "wxUSE_RADIOBOX must be defined."
/usr/include/wx-2.8/wx/chkconf.h:792:9: error: #error "wxUSE_RADIOBTN must be defined."
/usr/include/wx-2.8/wx/chkconf.h:800:9: error: #error "wxUSE_SASH must be defined."
/usr/include/wx-2.8/wx/chkconf.h:808:9: error: #error "wxUSE_SCROLLBAR must be defined."
/usr/include/wx-2.8/wx/chkconf.h:816:9: error: #error "wxUSE_SLIDER must be defined."
/usr/include/wx-2.8/wx/chkconf.h:824:9: error: #error "wxUSE_SOUND must be defined."
/usr/include/wx-2.8/wx/chkconf.h:832:9: error: #error "wxUSE_SPINBTN must be defined."
/usr/include/wx-2.8/wx/chkconf.h:840:9: error: #error "wxUSE_SPINCTRL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:848:9: error: #error "wxUSE_SPLASH must be defined."
/usr/include/wx-2.8/wx/chkconf.h:856:9: error: #error "wxUSE_SPLITTER must be defined."
/usr/include/wx-2.8/wx/chkconf.h:864:9: error: #error "wxUSE_STATBMP must be defined."
/usr/include/wx-2.8/wx/chkconf.h:872:9: error: #error "wxUSE_STATBOX must be defined."
/usr/include/wx-2.8/wx/chkconf.h:880:9: error: #error "wxUSE_STATLINE must be defined."
/usr/include/wx-2.8/wx/chkconf.h:888:9: error: #error "wxUSE_STATTEXT must be defined."
/usr/include/wx-2.8/wx/chkconf.h:896:9: error: #error "wxUSE_STATUSBAR must be defined."
/usr/include/wx-2.8/wx/chkconf.h:904:9: error: #error "wxUSE_TAB_DIALOG must be defined."
/usr/include/wx-2.8/wx/chkconf.h:912:9: error: #error "wxUSE_TEXTCTRL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:920:9: error: #error "wxUSE_TIPWINDOW must be defined."
/usr/include/wx-2.8/wx/chkconf.h:928:9: error: #error "wxUSE_TOOLBAR must be defined."
/usr/include/wx-2.8/wx/chkconf.h:936:9: error: #error "wxUSE_TOOLTIPS must be defined."
/usr/include/wx-2.8/wx/chkconf.h:944:9: error: #error "wxUSE_TREECTRL must be defined."
/usr/include/wx-2.8/wx/chkconf.h:952:9: error: #error "wxUSE_VALIDATORS must be defined."
/usr/include/wx-2.8/wx/chkconf.h:960:9: error: #error "wxUSE_WXHTML_HELP must be defined."
/usr/include/wx-2.8/wx/chkconf.h:968:9: error: #error "wxUSE_XRC must be defined."
/usr/include/wx-2.8/wx/chkconf.h:1765:9: error: #error "wxMessageBox is always needed"
In file included from /usr/include/wx-2.8/wx/wx.h:15,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/defs.h:42:13: error: #error "No Target! You should use wx-config program for compilation flags!"
In file included from /usr/include/wx-2.8/wx/memory.h:16,
from /usr/include/wx-2.8/wx/object.h:20,
from /usr/include/wx-2.8/wx/wx.h:16,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/string.h:164:4: error: #error "Please define string case-insensitive compare for your OS/compiler"
In file included from /usr/include/wx-2.8/wx/cmndata.h:17,
from /usr/include/wx-2.8/wx/wx.h:65,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/encinfo.h:64:6: error: #error "Unsupported toolkit"
In file included from /usr/include/wx-2.8/wx/wx.h:15,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/defs.h:212: error: redeclaration of C++ built-in type ‘bool’
In file included from /usr/include/wx-2.8/wx/memory.h:16,
from /usr/include/wx-2.8/wx/object.h:20,
from /usr/include/wx-2.8/wx/wx.h:16,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/string.h:827: error: ‘wxChar& wxString::operator[](unsigned int)’ cannot be overloaded
/usr/include/wx-2.8/wx/string.h:824: error: with ‘wxChar& wxString::operator[](size_t)’
In file included from /usr/include/wx-2.8/wx/event.h:22,
from /usr/include/wx-2.8/wx/wx.h:25,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/cursor.h: In destructor ‘wxBusyCursorSuspender::~wxBusyCursorSuspender()’:
/usr/include/wx-2.8/wx/cursor.h:74: error: invalid use of incomplete type ‘const struct wxCursor’
/usr/include/wx-2.8/wx/gdicmn.h:33: error: forward declaration of ‘const struct wxCursor’
In file included from /usr/include/wx-2.8/wx/wx.h:25,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/event.h: At global scope:
/usr/include/wx-2.8/wx/event.h:921: error: field ‘m_cursor’ has incomplete type
/usr/include/wx-2.8/wx/event.h: In constructor ‘wxSetCursorEvent::wxSetCursorEvent(wxCoord, wxCoord)’:
/usr/include/wx-2.8/wx/event.h:900: error: class ‘wxSetCursorEvent’ does not have any field named ‘m_cursor’
/usr/include/wx-2.8/wx/event.h: In copy constructor ‘wxSetCursorEvent::wxSetCursorEvent(const wxSetCursorEvent&)’:
/usr/include/wx-2.8/wx/event.h:907: error: class ‘wxSetCursorEvent’ does not have any field named ‘m_cursor’
/usr/include/wx-2.8/wx/event.h:907: error: ‘const class wxSetCursorEvent’ has no member named ‘m_cursor’
/usr/include/wx-2.8/wx/event.h: In member function ‘void wxSetCursorEvent::SetCursor(const wxCursor&)’:
/usr/include/wx-2.8/wx/event.h:913: error: ‘m_cursor’ was not declared in this scope
/usr/include/wx-2.8/wx/event.h: In member function ‘const wxCursor& wxSetCursorEvent::GetCursor() const’:
/usr/include/wx-2.8/wx/event.h:914: error: ‘m_cursor’ was not declared in this scope
/usr/include/wx-2.8/wx/event.h: In member function ‘bool wxSetCursorEvent::HasCursor() const’:
/usr/include/wx-2.8/wx/event.h:915: error: ‘m_cursor’ was not declared in this scope
In file included from /usr/include/wx-2.8/wx/wx.h:26,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/app.h: In constructor ‘wxAppInitializer::wxAppInitializer(wxAppConsole* (*)())’:
/usr/include/wx-2.8/wx/app.h:637: error: ‘wxApp’ has not been declared
In file included from /usr/include/wx-2.8/wx/window.h:26,
from /usr/include/wx-2.8/wx/wx.h:36,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/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’
In file included from /usr/include/wx-2.8/wx/wx.h:36,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/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: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: 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’
In file included from /usr/include/wx-2.8/wx/panel.h:15,
from /usr/include/wx-2.8/wx/wx.h:38,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/generic/panelg.h: At global scope:
/usr/include/wx-2.8/wx/generic/panelg.h:31: error: invalid use of incomplete type ‘struct wxWindow’
/usr/include/wx-2.8/wx/utils.h:51: error: forward declaration of ‘struct wxWindow’
In file included from /usr/include/wx-2.8/wx/wx.h:39,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/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: 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
In file included from /usr/include/wx-2.8/wx/wx.h:40,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/frame.h: At global scope:
/usr/include/wx-2.8/wx/frame.h:53: error: expected class-name before ‘{’ token
In file included from /usr/include/wx-2.8/wx/wx.h:48,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/dc.h:846: error: field ‘m_pen’ has incomplete type
/usr/include/wx-2.8/wx/dc.h:847: error: field ‘m_brush’ has incomplete type
/usr/include/wx-2.8/wx/dc.h:848: error: field ‘m_backgroundBrush’ has incomplete type
/usr/include/wx-2.8/wx/dc.h:849: error: field ‘m_textForegroundColour’ has incomplete type
/usr/include/wx-2.8/wx/dc.h:850: error: field ‘m_textBackgroundColour’ has incomplete type
/usr/include/wx-2.8/wx/dc.h:851: error: field ‘m_font’ has incomplete type
In file included from /usr/include/wx-2.8/wx/wx.h:48,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/dc.h: In constructor ‘wxDCBase::wxDCBase()’:
/usr/include/wx-2.8/wx/dc.h:121: error: class ‘wxDCBase’ does not have any field named ‘m_pen’
/usr/include/wx-2.8/wx/dc.h:122: error: class ‘wxDCBase’ does not have any field named ‘m_brush’
/usr/include/wx-2.8/wx/dc.h:123: error: class ‘wxDCBase’ does not have any field named ‘m_backgroundBrush’
/usr/include/wx-2.8/wx/dc.h:124: error: class ‘wxDCBase’ does not have any field named ‘m_textForegroundColour’
/usr/include/wx-2.8/wx/dc.h:125: error: class ‘wxDCBase’ does not have any field named ‘m_textBackgroundColour’
/usr/include/wx-2.8/wx/dc.h:126: error: class ‘wxDCBase’ does not have any field named ‘m_font’
/usr/include/wx-2.8/wx/dc.h: In member function ‘wxBitmap wxDCBase::GetAsBitmap(const wxRect*) const’:
/usr/include/wx-2.8/wx/dc.h:318: error: return type ‘struct wxBitmap’ is incomplete
/usr/include/wx-2.8/wx/dc.h:319: error: invalid use of incomplete type ‘struct wxBitmap’
/usr/include/wx-2.8/wx/gdicmn.h:30: error: forward declaration of ‘struct wxBitmap’
/usr/include/wx-2.8/wx/dc.h: In member function ‘virtual const wxBrush& wxDCBase::GetBackground() const’:
/usr/include/wx-2.8/wx/dc.h:532: error: ‘m_backgroundBrush’ was not declared in this scope
/usr/include/wx-2.8/wx/dc.h: In member function ‘virtual const wxBrush& wxDCBase::GetBrush() const’:
/usr/include/wx-2.8/wx/dc.h:533: error: ‘m_brush’ was not declared in this scope
/usr/include/wx-2.8/wx/dc.h: In member function ‘virtual const wxFont& wxDCBase::GetFont() const’:
/usr/include/wx-2.8/wx/dc.h:534: error: ‘m_font’ was not declared in this scope
/usr/include/wx-2.8/wx/dc.h: In member function ‘virtual const wxPen& wxDCBase::GetPen() const’:
/usr/include/wx-2.8/wx/dc.h:535: error: ‘m_pen’ was not declared in this scope
/usr/include/wx-2.8/wx/dc.h: In member function ‘virtual const wxColour& wxDCBase::GetTextForeground() const’:
/usr/include/wx-2.8/wx/dc.h:537: error: ‘m_textForegroundColour’ was not declared in this scope
/usr/include/wx-2.8/wx/dc.h: In member function ‘virtual const wxColour& wxDCBase::GetTextBackground() const’:
/usr/include/wx-2.8/wx/dc.h:538: error: ‘m_textBackgroundColour’ was not declared in this scope
/usr/include/wx-2.8/wx/dc.h: In member function ‘virtual void wxDCBase::SetTextForeground(const wxColour&)’:
/usr/include/wx-2.8/wx/dc.h:540: error: ‘m_textForegroundColour’ was not declared in this scope
/usr/include/wx-2.8/wx/dc.h: In member function ‘virtual void wxDCBase::SetTextBackground(const wxColour&)’:
/usr/include/wx-2.8/wx/dc.h:542: error: ‘m_textBackgroundColour’ was not declared in this scope
In file included from /usr/include/wx-2.8/wx/wx.h:48,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/dc.h: In member function ‘virtual wxBitmap wxDCBase::DoGetAsBitmap(const wxRect*) const’:
/usr/include/wx-2.8/wx/dc.h:738: error: return type ‘struct wxBitmap’ is incomplete
/usr/include/wx-2.8/wx/dc.h: At global scope:
/usr/include/wx-2.8/wx/dc.h:926: error: field ‘m_colFgOld’ has incomplete type
/usr/include/wx-2.8/wx/dc.h: In constructor ‘wxDCTextColourChanger::wxDCTextColourChanger(wxDC&)’:
/usr/include/wx-2.8/wx/dc.h:903: error: class ‘wxDCTextColourChanger’ does not have any field named ‘m_colFgOld’
/usr/include/wx-2.8/wx/dc.h: In destructor ‘wxDCTextColourChanger::~wxDCTextColourChanger()’:
/usr/include/wx-2.8/wx/dc.h:912: error: ‘m_colFgOld’ was not declared in this scope
/usr/include/wx-2.8/wx/dc.h:913: error: invalid use of incomplete type ‘struct wxDC’
/usr/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h: In member function ‘void wxDCTextColourChanger::Set(const wxColour&)’:
/usr/include/wx-2.8/wx/dc.h:918: error: ‘m_colFgOld’ was not declared in this scope
/usr/include/wx-2.8/wx/dc.h:919: error: invalid use of incomplete type ‘struct wxDC’
/usr/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h:920: error: invalid use of incomplete type ‘struct wxDC’
/usr/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h: At global scope:
/usr/include/wx-2.8/wx/dc.h:953: error: field ‘m_penOld’ has incomplete type
/usr/include/wx-2.8/wx/dc.h: In constructor ‘wxDCPenChanger::wxDCPenChanger(wxDC&, const wxPen&)’:
/usr/include/wx-2.8/wx/dc.h:939: error: class ‘wxDCPenChanger’ does not have any field named ‘m_penOld’
/usr/include/wx-2.8/wx/dc.h:939: error: invalid use of incomplete type ‘struct wxDC’
/usr/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h:941: error: invalid use of incomplete type ‘struct wxDC’
/usr/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h: In destructor ‘wxDCPenChanger::~wxDCPenChanger()’:
/usr/include/wx-2.8/wx/dc.h:946: error: ‘m_penOld’ was not declared in this scope
/usr/include/wx-2.8/wx/dc.h:947: error: invalid use of incomplete type ‘struct wxDC’
/usr/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h: At global scope:
/usr/include/wx-2.8/wx/dc.h:980: error: field ‘m_brushOld’ has incomplete type
/usr/include/wx-2.8/wx/dc.h: In constructor ‘wxDCBrushChanger::wxDCBrushChanger(wxDC&, const wxBrush&)’:
/usr/include/wx-2.8/wx/dc.h:966: error: class ‘wxDCBrushChanger’ does not have any field named ‘m_brushOld’
/usr/include/wx-2.8/wx/dc.h:966: error: invalid use of incomplete type ‘struct wxDC’
/usr/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h:968: error: invalid use of incomplete type ‘struct wxDC’
/usr/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h: In destructor ‘wxDCBrushChanger::~wxDCBrushChanger()’:
/usr/include/wx-2.8/wx/dc.h:973: error: ‘m_brushOld’ was not declared in this scope
/usr/include/wx-2.8/wx/dc.h:974: error: invalid use of incomplete type ‘struct wxDC’
/usr/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h: In constructor ‘wxDCClipper::wxDCClipper(wxDC&, const wxRegion&)’:
/usr/include/wx-2.8/wx/dc.h:994: error: invalid use of incomplete type ‘struct wxDC’
/usr/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h: In constructor ‘wxDCClipper::wxDCClipper(wxDC&, const wxRect&)’:
/usr/include/wx-2.8/wx/dc.h:996: error: invalid use of incomplete type ‘struct wxDC’
/usr/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h: In constructor ‘wxDCClipper::wxDCClipper(wxDC&, wxCoord, wxCoord, wxCoord, wxCoord)’:
/usr/include/wx-2.8/wx/dc.h:998: error: invalid use of incomplete type ‘struct wxDC’
/usr/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
/usr/include/wx-2.8/wx/dc.h: In destructor ‘wxDCClipper::~wxDCClipper()’:
/usr/include/wx-2.8/wx/dc.h:1000: error: invalid use of incomplete type ‘struct wxDC’
/usr/include/wx-2.8/wx/event.h:36: error: forward declaration of ‘struct wxDC’
In file included from /usr/include/wx-2.8/wx/wx.h:50,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/dcmemory.h: In member function ‘void wxMemoryDCBase::SelectObject(wxBitmap&)’:
/usr/include/wx-2.8/wx/dcmemory.h:35: error: invalid use of incomplete type ‘struct wxBitmap’
/usr/include/wx-2.8/wx/gdicmn.h:30: error: forward declaration of ‘struct wxBitmap’
/usr/include/wx-2.8/wx/dcmemory.h:36: error: invalid use of incomplete type ‘struct wxBitmap’
/usr/include/wx-2.8/wx/gdicmn.h:30: error: forward declaration of ‘struct wxBitmap’
In file included from /usr/include/wx-2.8/wx/wx.h:61,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/dialog.h: At global scope:
/usr/include/wx-2.8/wx/dialog.h:33: error: expected class-name before ‘{’ token
In file included from /usr/include/wx-2.8/wx/wx.h:65,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/cmndata.h:49: error: field ‘m_dataColour’ has incomplete type
/usr/include/wx-2.8/wx/cmndata.h:50: error: field ‘m_custColours’ has incomplete type
/usr/include/wx-2.8/wx/cmndata.h: In member function ‘void wxColourData::SetColour(const wxColour&)’:
/usr/include/wx-2.8/wx/cmndata.h:38: error: ‘m_dataColour’ was not declared in this scope
/usr/include/wx-2.8/wx/cmndata.h: In member function ‘const wxColour& wxColourData::GetColour() const’:
/usr/include/wx-2.8/wx/cmndata.h:39: error: ‘m_dataColour’ was not declared in this scope
/usr/include/wx-2.8/wx/cmndata.h: In member function ‘wxColour& wxColourData::GetColour()’:
/usr/include/wx-2.8/wx/cmndata.h:40: error: ‘m_dataColour’ was not declared in this scope
/usr/include/wx-2.8/wx/cmndata.h: At global scope:
/usr/include/wx-2.8/wx/cmndata.h:125: error: field ‘m_fontColour’ has incomplete type
/usr/include/wx-2.8/wx/cmndata.h:129: error: field ‘m_initialFont’ has incomplete type
/usr/include/wx-2.8/wx/cmndata.h:130: error: field ‘m_chosenFont’ has incomplete type
/usr/include/wx-2.8/wx/cmndata.h: In copy constructor ‘wxFontData::wxFontData(const wxFontData&)’:
/usr/include/wx-2.8/wx/cmndata.h:65: error: class ‘wxFontData’ does not have any field named ‘m_fontColour’
/usr/include/wx-2.8/wx/cmndata.h:65: error: ‘const class wxFontData’ has no member named ‘m_fontColour’
/usr/include/wx-2.8/wx/cmndata.h:69: error: class ‘wxFontData’ does not have any field named ‘m_initialFont’
/usr/include/wx-2.8/wx/cmndata.h:69: error: ‘const class wxFontData’ has no member named ‘m_initialFont’
/usr/include/wx-2.8/wx/cmndata.h:70: error: class ‘wxFontData’ does not have any field named ‘m_chosenFont’
/usr/include/wx-2.8/wx/cmndata.h:70: error: ‘const class wxFontData’ has no member named ‘m_chosenFont’
/usr/include/wx-2.8/wx/cmndata.h: In member function ‘wxFontData& wxFontData::operator=(const wxFontData&)’:
/usr/include/wx-2.8/wx/cmndata.h:81: error: ‘m_fontColour’ was not declared in this scope
/usr/include/wx-2.8/wx/cmndata.h:81: error: ‘const class wxFontData’ has no member named ‘m_fontColour’
/usr/include/wx-2.8/wx/cmndata.h:85: error: ‘m_initialFont’ was not declared in this scope
/usr/include/wx-2.8/wx/cmndata.h:85: error: ‘const class wxFontData’ has no member named ‘m_initialFont’
/usr/include/wx-2.8/wx/cmndata.h:86: error: ‘m_chosenFont’ was not declared in this scope
/usr/include/wx-2.8/wx/cmndata.h:86: error: ‘const class wxFontData’ has no member named ‘m_chosenFont’
/usr/include/wx-2.8/wx/cmndata.h: In member function ‘void wxFontData::SetColour(const wxColour&)’:
/usr/include/wx-2.8/wx/cmndata.h:97: error: ‘m_fontColour’ was not declared in this scope
/usr/include/wx-2.8/wx/cmndata.h: In member function ‘const wxColour& wxFontData::GetColour() const’:
/usr/include/wx-2.8/wx/cmndata.h:98: error: ‘m_fontColour’ was not declared in this scope
/usr/include/wx-2.8/wx/cmndata.h: In member function ‘void wxFontData::SetInitialFont(const wxFont&)’:
/usr/include/wx-2.8/wx/cmndata.h:106: error: ‘m_initialFont’ was not declared in this scope
/usr/include/wx-2.8/wx/cmndata.h: In member function ‘wxFont wxFontData::GetInitialFont() const’:
/usr/include/wx-2.8/wx/cmndata.h:107: error: return type ‘struct wxFont’ is incomplete
/usr/include/wx-2.8/wx/cmndata.h:107: error: ‘m_initialFont’ was not declared in this scope
/usr/include/wx-2.8/wx/cmndata.h: In member function ‘void wxFontData::SetChosenFont(const wxFont&)’:
/usr/include/wx-2.8/wx/cmndata.h:109: error: ‘m_chosenFont’ was not declared in this scope
/usr/include/wx-2.8/wx/cmndata.h: In member function ‘wxFont wxFontData::GetChosenFont() const’:
/usr/include/wx-2.8/wx/cmndata.h:110: error: return type ‘struct wxFont’ is incomplete
/usr/include/wx-2.8/wx/cmndata.h:110: error: ‘m_chosenFont’ was not declared in this scope
In file included from /usr/include/wx-2.8/wx/wx.h:84,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/scrolwin.h: In member function ‘wxSize wxScrollHelper::GetTargetSize() const’:
/usr/include/wx-2.8/wx/scrolwin.h:185: 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/scrolwin.h: In constructor ‘wxScrolledWindow::wxScrolledWindow()’:
/usr/include/wx-2.8/wx/scrolwin.h:274: error: no matching function for call to ‘wxScrollHelper::wxScrollHelper(wxScrolledWindow* const)’
/usr/include/wx-2.8/wx/scrolwin.h:240: note: candidates are: wxScrollHelper::wxScrollHelper(const wxScrollHelper&)
/usr/include/wx-2.8/wx/scrolwin.h:55: note: wxScrollHelper::wxScrollHelper(wxWindow*)
/usr/include/wx-2.8/wx/scrolwin.h: In constructor ‘wxScrolledWindow::wxScrolledWindow(wxWindow*, wxWindowID, const wxPoint&, const wxSize&, long int, const wxString&)’:
/usr/include/wx-2.8/wx/scrolwin.h:281: error: no matching function for call to ‘wxScrollHelper::wxScrollHelper(wxScrolledWindow* const)’
/usr/include/wx-2.8/wx/scrolwin.h:240: note: candidates are: wxScrollHelper::wxScrollHelper(const wxScrollHelper&)
/usr/include/wx-2.8/wx/scrolwin.h:55: note: wxScrollHelper::wxScrollHelper(wxWindow*)
In file included from /usr/include/wx-2.8/wx/wx.h:89,
from /home/jiapei/MyPrograms/codelite/main.cpp:14:
/usr/include/wx-2.8/wx/sizer.h: In member function ‘void wxSizerItem::SetMinSize(const wxSize&)’:
/usr/include/wx-2.8/wx/sizer.h:292: error: invalid use of incomplete type ‘struct wxWindow’
/usr/include/wx-2.8/wx/utils.h:51: error: forward declaration of ‘struct wxWindow’
/home/jiapei/MyPrograms/codelite/main.cpp: In function ‘int main(int, char**)’:
/home/jiapei/MyPrograms/codelite/main.cpp:29: error: request for member ‘ToLong’ in ‘wxGetFreeMemory()’, which is of non-class type ‘wxMemorySize’
make: *** [Debug/main.o] Error 1
----------Build Ended----------
247 errors, 0 warnings
I installed both "libwxbase2.8-dev" and "libwxgtk2.8-dev", and I noticed that there is no "setup.h" in the folder "/usr/include/wx-2.8".
However, there should be a way to walk around this, like what's happening in Netbeans and Eclipse.
I added "/usr/include/wx-2.8" to the Project->Compiler->Additional Search Path already.
What else can I do to ensure the wxWidget sample be compiled?
Best Regards
JIA