Re: [gtkmm] gtkmm-2.4.2 on win32



Cedric Gustin wrote:

You should not use the cygwin posix layer with my port. The GTK+ runtime I use is a native one (http://www.gimp.org/win32 for details). You must either use mingw (http://www.mingw.org) to compile k-3d against gtkmm-2.4 on win32 or pass the '-mno-cygwin' flag to cygwin-g++, although you might stumble across conflicts between the version of gcc I use (mingw32-gcc 3.2.3) and the one provided with cygwin (3.3.x). I strongly recommend the mingw approach.

FWIW, the cygwin gcc seems to work fine building the gtkmm demos, both with-and-without the "-mno-cygwin" flag. Building K-3D using "-mno-cygwin" changes the output slightly, but the link problems persist - here is a representative sample, easier to read than the first:

.libs/main_document_window.o(.text$_ZN3k3d7vector3ixEi+0x2c):main_document_window.cpp: undefined reference to `__assert' .libs/radial_menu.o(.text+0x485):radial_menu.cpp: undefined reference to `_gdk_window_get_pointer' .libs/radial_menu.o(.text+0x945):radial_menu.cpp: undefined reference to `_gtk_widget_get_type' .libs/radial_menu.o(.text+0x95e):radial_menu.cpp: undefined reference to `_g_type_check_instance_cast' .libs/radial_menu.o(.text+0x9fd):radial_menu.cpp: undefined reference to `_gdk_window_move_resize' .libs/radial_menu.o(.text+0xd46):radial_menu.cpp: undefined reference to `_gtk_menu_get_type' .libs/radial_menu.o(.text+0xd73):radial_menu.cpp: undefined reference to `_g_type_check_instance_cast' .libs/radial_menu.o(.text+0x170e):radial_menu.cpp: undefined reference to `_gtk_widget_get_type' .libs/radial_menu.o(.text+0x1727):radial_menu.cpp: undefined reference to `_g_type_check_instance_cast' .libs/radial_menu.o(.text+0x18cd):radial_menu.cpp: undefined reference to `_gtk_paint_box' .libs/radial_menu.o(.text+0x1936):radial_menu.cpp: undefined reference to `_gdk_window_get_pointer'

What's striking is that all of the problem symbols are "C" functions, so I'm looking into C/C++ linkage issues.

Make sure you have the native-win32 gtkglext packages, not the cygwin ones !

Yes, I'm using gtkglext that is part of the all-in-one glade/gtk installer.

Many thanks,
Tim




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]