Re: [gtkmm] Help: Failed to link gtkmm 2.2.1 win32 port (undefined reference Gtk::Window::Window)
- From: Cedric Gustin <cedric gustin swing be>
- To: <ptwahyu centrin net id>, <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Help: Failed to link gtkmm 2.2.1 win32 port (undefined reference Gtk::Window::Window)
- Date: Thu, 10 Apr 2003 13:38:49 +0200
At 02:59 PM 4/10/2003 +0700, mensoeng wrote:
I try to build simple gtkmm test program (run fine on linux) using gtkmm
2.2.1 win32 port with mingw
but can't never finish the link step:
Reading specs from c:/mingw/bin/../lib/gcc-lib/mingw32/3.2/specs
Configured with:
../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --tar
get=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-language
s=f77,c++,objc,ada --disable-win32-registry --disable-shared
Thread model: win32
gcc version 3.2 (mingw special 20020817-1)
c:\mingw\bin\..\lib\gcc-lib\mingw32\3.2\..\..\..\..\mingw32\bin\ld.exe -Bdyn
amic -o lesson201.exe
c:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../crt2.o
c:/mingw/bin/../lib/gcc-lib/mingw32/3.2/crtbegin.o -Lc:/mingw/lib -Lc:/mingw
/bin/../lib/gcc-lib/mingw32/3.2 -Lc:/mingw/bin/../lib/gcc-lib -L/mingw/lib/g
cc-lib/mingw32/3.2 -Lc:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../../min
gw32/lib -L/mingw/lib/gcc-lib/mingw32/3.2/../../../../mingw32/lib -Lc:/mingw
/bin/../lib/gcc-lib/mingw32/3.2/../../.. -L/mingw/lib/gcc-lib/mingw32/3.2/..
/../.. -lgtkmm-2.0 -lgdkmm-2.0 -latkmm-1.0 -lgtk-win32-2.0 -lpangomm-1.0 -lg
libmm-2.0 -lsigc-1.2 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32
-1.0 -lgdi32 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -lico
nv
lesson201.o -lstdc++ -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32
-lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcr
t c:/mingw/bin/../lib/gcc-lib/mingw32/3.2/crtend.o
lesson201.o(.text+0x27):lesson201.cpp: undefined reference to
`Gtk::Window::Window(Gtk::WindowType)'
lesson201.o(.text+0x73):lesson201.cpp: undefined reference to
`Gtk::Button::Button()'
.... and more undefined reference
Strange...
1. Did you try to compile one of the gtkmm examples (say helloworld)
2. I suppose you use the -mms-bitfields compiler flag...
3. Do you compile with g++ `pkg-config --cflags gtkmm-2.0` -mms-bitfields
myfile.cc `pkg-config --libs gtkmm-2.0` or through a
libtool/configure/Makefile.am set of files ?
I need more information here. My binaries should work on all gtkmm/examples
(except the clipboard ones).
Cedric
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]