Hi all,
I'm trying to compile CB with wxWidget 2.8.
The compiler return me the error :
g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I/usr/local/lib/wx/include/x11univ-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXUNIVERSAL__ -D__WXX11__ -pthread -I../../../src/include/wxFlatNotebook/include -Ulinux -Uunix -O2 -ffast-math -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT wxFlatNotebook.lo -MD -MP -MF .deps/wxFlatNotebook.Tpo -c src/wxFlatNotebook/wxFlatNotebook.cpp -fPIC -DPIC -o .libs/wxFlatNotebook.o
In file included from ../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFlatNotebook.h:40,
from src/wxFlatNotebook/wxFlatNotebook.cpp:12:
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:76: error: invalid use of undefined type `struct wxDropTarget'
/usr/local/include/wx-2.8/wx/window.h:60: error: forward declaration of `struct wxDropTarget'
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:78: error: expected identifier before '*' token
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:78: error: ISO C++ forbids declaration of `wxDragResult' with no type
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:78: error: `wxDragResult' declared as function returning a function
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:78: error: ISO C++ forbids declaration of `pt2Func' with no type
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:80: error: `pt2Func' does not name a type
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:88: error: `pt2Func' has not been declared
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:89: error: ISO C++ forbids declaration of `pt2CallbackFunc' with no type
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:107: error: `OnData' declared as function returning a function
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h: In constructor `wxFNBDropTarget<T>::wxFNBDropTarget(T*, int)':
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:90: error: class `wxFNBDropTarget<T>' does not have any field named `m_pt2CallbackFunc'
../../../src/include/wxFlatNotebook/include/wx/wxFlatNotebook/wxFNBDropTarget.h:94: error: there are no arguments to `SetDataObject' that depend on a template parameter, so a declaration of `SetDataObject' must be available
.....
Thank for your help,
TSalm
Ya, now C::B is compiling well
Thanks!
I've compiling wxW. 2.8 with the configure options :
./configure --enable-optimise --disable-universal
"configure" send to me :
Configured wxWidgets 2.8.3 for `i686-pc-linux-gnu'
Which GUI toolkit should wxWidgets use? GTK+ 2
Should wxWidgets be compiled into single library? no
Should wxWidgets be compiled in debug mode? no
Should wxWidgets be linked as a shared library? yes
Should wxWidgets be compiled in Unicode mode? yes
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.4 yes
wxWidgets 2.6 yes
Which libraries should wxWidgets use?
jpeg sys
png sys
regex builtin
tiff sys
zlib sys
odbc no
expat sys
libmspack no
sdl no