2.8.7 doesn't compile Gtk1 port with GCC 4.1.2

Milan Babuskov milanb at panonnet.net
Thu Feb 28 01:00:54 PST 2008


Hi,

I apologize if this was reported before or already fixed.

Compiling sources from wxWidgets-2.8.7.tar.bz2 package using GCC 4.1.2 
with the following 'configure' line:

./configure --disable-debug --enable-gtk --disable-gtk2

Gives this error:

/home/milanb/install/devel/wx/2.8/wxWidgets-2.8.7/bk-deps g++ -c -o 
coredll_framecmn.o -I.pch/wxprec_coredll -D__WXGTK__ 
-DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC -DWX_PRECOMP 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES 
-I/home/milanb/install/devel/wx/2.8/wxWidgets-2.8.7/lib/wx/include/gtk-ansi-release-2.8 
-I./include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 
-I/usr/lib/glib/include -D_REENTRANT -DGTK_NO_CHECK_CASTS -pthread -Wall 
-Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing 
./src/common/framecmn.cpp
./src/common/framecmn.cpp: In member function 'virtual void 
wxFrameBase::SendSizeEvent()':
./src/common/framecmn.cpp:182: error: no matching function for call to 
'wxFrame::GtkOnSize()'
./include/wx/gtk1/frame.h:80: note: candidates are: virtual void 
wxFrame::GtkOnSize(int, int, int, int)
make: *** [coredll_framecmn.o] Error 1


Changing the call in framecmn.cpp to GtkOnSize(GetSize().x, GetSize().y, 
GetSize().GetWidth(), GetSize().GetHeight()) does make it compile, but 
I'm not sure whether that's a proper fix (and I didn't test with Gtk2 yet)?

Thanks,

-- 
Milan Babuskov
http://www.flamerobin.org




More information about the wx-dev mailing list