Linker Problem on gtkmm/libglademm



I am trying out my first gtkmm/libglademm app and am getting the following error when trying to make. I've only gotten a couple of hits googling the "undefined reference" errors which didn't help much. I've been using the libglademm examples as a guide but am obviously missing something.

g++ -Wall -g -o test main.o -L/usr/lib/gtkmm-2.4 -L/usr/lib/gdkmm-2.4 -L/usr/lib/gtk-2.0 -L/usr/lib/glib-2.0 -L/usr/lib/sigc++-2.0 -L/usr/lib/libglademm-2.4 -L/usr/lib/libglade -L/usr/lib -L/usr/lib/glibmm-2.4 -L/usr/lib/libgnomemm-2.6 -L/usr/lib/libgnomeuimm-2.6 -L/usr/lib/pango
main.o(.text+0xe8): In function `main':
/home/ddeacon/Projects/test/src/main.cc:9: undefined reference to `Gtk::Main::Main[in-charge](int&, char**&, bool)' main.o(.text+0x140):/home/ddeacon/Projects/test/src/main.cc:13: undefined reference to `Glib::ustring::ustring[in-charge]()'
...
main.o(.gcc_except_table+0x88): undefined reference to `typeinfo for Gnome::Glade::XmlError' main.o(.gnu.linkonce.t._ZN5Gnome5Glade3Xml18get_widget_derivedI8wnd_mainEEPT_RKN4Glib7ustringERS5_+0x20): In function `wnd_main* Gnome::Glade::Xml::get_widget_derived<wnd_main>(Glib::ustring const&, wnd_main*&)': /usr/include/libglademm-2.4/libglademm/xml.h:236: undefined reference to `Gnome::Glade::Xml::get_cwidget(Glib::ustring const&)'
...
main.o(.gnu.linkonce.t._ZN5Gnome5Glade3Xml18get_widget_derivedI8wnd_mainEEPT_RKN4Glib7ustringERS5_+0x1a4):/usr/include/libglademm-2.4/libglademm/xml.h:263: undefined reference to `wnd_main::wnd_main[in-charge](_GtkWindow*, Glib::RefPtr<Gnome::Glade::Xml> const&)'
collect2: ld returned 1 exit status
make: *** [test] Error 1


Thanks,
Don



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