GNOME Bugzilla – Bug 507521
Glademm Project does not compile
Last modified: 2008-01-14 01:22:49 UTC
The following errors occoured when you try to compile: $ g++ something.cc -o something `pkg-config gtkmm-2.4 --cflags --libs` /tmp/ccmnV9VL.o: In function `window1::window1()': something.cc:(.text._ZN7window1C1Ev[window1::window1()]+0x46): undefined reference to `window1_glade::window1_glade()' /tmp/ccmnV9VL.o: In function `window1::~window1()': something.cc:(.text._ZN7window1D0Ev[window1::~window1()]+0x57): undefined reference to `window1_glade::~window1_glade()' /tmp/ccmnV9VL.o: In function `window1::~window1()': something.cc:(.text._ZN7window1D1Ev[window1::~window1()]+0x57): undefined reference to `window1_glade::~window1_glade()' /tmp/ccmnV9VL.o:(.rodata._ZTC7window10_13window1_glade[vtable for window1]+0xc): undefined reference to `typeinfo for window1_glade' /tmp/ccmnV9VL.o:(.rodata._ZTC7window10_13window1_glade[vtable for window1]+0x10): undefined reference to `window1_glade::~window1_glade()' /tmp/ccmnV9VL.o:(.rodata._ZTC7window10_13window1_glade[vtable for window1]+0x14): undefined reference to `window1_glade::~window1_glade()' /tmp/ccmnV9VL.o:(.rodata._ZTC7window10_13window1_glade[vtable for window1]+0x150): undefined reference to `typeinfo for window1_glade' /tmp/ccmnV9VL.o:(.rodata._ZTC7window10_13window1_glade[vtable for window1]+0x154): undefined reference to `non-virtual thunk to window1_glade::~window1_glade()' /tmp/ccmnV9VL.o:(.rodata._ZTC7window10_13window1_glade[vtable for window1]+0x158): undefined reference to `non-virtual thunk to window1_glade::~window1_glade()' /tmp/ccmnV9VL.o:(.rodata._ZTC7window10_13window1_glade[vtable for window1]+0x17c): undefined reference to `typeinfo for window1_glade' /tmp/ccmnV9VL.o:(.rodata._ZTC7window10_13window1_glade[vtable for window1]+0x180): undefined reference to `virtual thunk to window1_glade::~window1_glade()' /tmp/ccmnV9VL.o:(.rodata._ZTC7window10_13window1_glade[vtable for window1]+0x184): undefined reference to `virtual thunk to window1_glade::~window1_glade()' /tmp/ccmnV9VL.o:(.rodata._ZTI7window1[typeinfo for window1]+0x8): undefined reference to `typeinfo for window1_glade' collect2: ld returned 1 exit status $
The glademm code generator is not part of gtkmm or the gnomemm project. (libglademm is).
From the build log, it seems the failure is caused by the constructor and destructor of class window1_glade not being defined, which has not thing to do with gtkmm and glademm.