I am trying to build Code::Blocks on the following system:
CentOS release 5.5 (Final)
gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)
wxGTK-2.8.10-1
I tried building from both the latest stable version of the source code and from a fresh SVN checkout.
In both cases I get same error:
g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/local/lib/wx/include/x11univ-ansi-debug-static-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I./include -I./src/scintilla/include -I./src/scintilla/src -DSCI_LEXER -DLINK_LEXERS -DGTK -D__WX__ -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT wxscintilla.lo -MD -MP -MF .deps/wxscintilla.Tpo -c src/wxscintilla.cpp -fPIC -DPIC -o .libs/wxscintilla.o
src/wxscintilla.cpp: In constructor 'wxScintillaEvent::wxScintillaEvent(wxEventType, int)':
src/wxscintilla.cpp:4906: error: 'wxDrag_CopyOnly' was not declared in this scope
Searching, wxDrag_CopyOnly is in dnd.h, which is included in ScintillaWX.h, which is included by wxscintilla.cpp.
But, it is inside, #if wxUSE_DRAG_AND_DROP, so I'm guess my configuration is lacking the item the sets this?
What else do I need to install/configure?