Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Compiling CB on Linux with wxWidget 2.8 problem

(1/1)

TSalm:
Hi all,

I'm trying to compile CB with wxWidget 2.8.
The compiler return me the error :

--- Code: ---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
.....

--- End code ---

Thank for your help,
TSalm

Biplab:
It seems you are using Universal build of wxWidgets. I believe that is reason of failure.

Please use wxGTK-2.8-Non-Universal build.

TSalm:
Ya, now C::B is compiling well
Thanks!


I've compiling wxW. 2.8 with the configure options :

--- Code: ---./configure --enable-optimise --disable-universal

--- End code ---

"configure" send to me :

--- Code: ---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

--- End code ---

Biplab:
Don't use wxGTK-2.8.3. C::B will not run at all.

Please download wxGTK-2.8.4 and use that.

TSalm:
oups, indeed.

now C::B work well.
thanks,

Tsalm

Navigation

[0] Message Index

Go to full version