User forums > Help
errors compiling with wxgtk 2.7.1
xhrit:
Using Slackware Linux 10.2, here are the steps I take:
compile wxgtk 2.7.1 in 2.4 compatibility mode
download code::blocks from svn as described in wiki.
export ACLOCAL_FLAGS="-I /home/xhrit/Documents/Code/cpp/wxWidgets-2.7.0-1"
./bootstrap
./configure
./make
compiles fine for a wile, then pops errors in wxscintilla (duplicate case values) - fixed by commenting out 4 lines in ScintillaWX.cpp
./make
compiles fine for a while, then pops a slew ov errors I have no idea how to fix :
In file included from src/propgrid/odcombo.cpp:48:
../../../src/sdk/propgrid/include/wx/propgrid/odcombo.h:478: error: conflicting
return type specified for `virtual int wxPGOwnerDrawnComboBox::GetCount()
const'
/usr/local/include/wx-2.7/wx/ctrlsub.h:41: error: overriding `virtual
unsigned int wxItemContainerImmutable::GetCount() const'
src/propgrid/odcombo.cpp: In static member function `static wxObject*
wxPGOwnerDrawnComboBox::wxCreateObject()':
src/propgrid/odcombo.cpp:2240: error: cannot allocate an object of type `
wxPGOwnerDrawnComboBox'
src/propgrid/odcombo.cpp:2240: error: because the following virtual functions
are abstract:
/usr/local/include/wx-2.7/wx/ctrlsub.h:44: error: virtual wxString
wxItemContainerImmutable::GetString(unsigned int) const
/usr/local/include/wx-2.7/wx/ctrlsub.h:46: error: virtual void
wxItemContainerImmutable::SetString(unsigned int, const wxString&)
/usr/local/include/wx-2.7/wx/ctrlsub.h:121: error: virtual void
wxItemContainer::Delete(unsigned int)
/usr/local/include/wx-2.7/wx/ctrlsub.h:140: error: virtual int
wxItemContainer::DoInsert(const wxString&, unsigned int)
/usr/local/include/wx-2.7/wx/ctrlsub.h:142: error: virtual void
wxItemContainer::DoSetItemClientData(unsigned int, void*)
/usr/local/include/wx-2.7/wx/ctrlsub.h:143: error: virtual void*
wxItemContainer::DoGetItemClientData(unsigned int) const
/usr/local/include/wx-2.7/wx/ctrlsub.h:144: error: virtual void
wxItemContainer::DoSetItemClientObject(unsigned int, wxClientData*)
/usr/local/include/wx-2.7/wx/ctrlsub.h:145: error: virtual wxClientData*
wxItemContainer::DoGetItemClientObject(unsigned int) const
Ceniza:
wxWidgets 2.7.x has some changes that break Code::Blocks' compilation, and you can see that from the errors you got.
We are NOT supporting wxWidgets 2.7 yet, only 2.6, and it seems there's NOT any plans to support it by now.
If you want to compile Code::Blocks, please downgrade to wxWidgets 2.6.
xhrit:
hmm. So i take it i can compile codeblocks with 2.6, and then use it to build apps with 2.7?
I ask because the app I am building codeblocks to build uses 2.7.
Game_Ender:
Yes you can build Code::Blocks with 2.6 and then make an App that uses 2.7. wxWidgets 2.7 is a developer release, and its moves too quickly and is to buggy for a project like Code::Blocks.
xhrit:
ok, so i removed wxwidgets 2.7 and installed 2.6 + patch as described in the wiki. (someone should really change the wiki - it said i could use 2.6 *or later*.) Anyway, everything compiles fine for a while... then it pops an error.
In file included from debuggerstate.cpp:2: debuggerstate.h:28: error: `cbProject' was not declared in this scope
Navigation
[0] Message Index
[#] Next page
Go to full version