linking with pkg-config and autoconf



I have created an autoconf based build system. I use pkg_check_modules to find gtkmm then I use the cflags and libs. however when the build process gets to linking I get these errors: /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Gdk::Color::~Color [in-charge]()' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Atk::Implementor::ref_accessibile_vfunc()' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkPixbufAnimation*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkWindowObject*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Gdk::AtomStringTraits::to_cpp_type(_GdkAtom*)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Gdk::Pixbuf::get_base_type()' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkVisual*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `typeinfo for Gdk::Pixmap' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Pango::wrap_init()' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkRectangle const*)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkColor*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Gdk::Window::raise()' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_PangoContext*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Gdk::Color::Color[in-charge](_GdkColor*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkColormap*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Pango::FontDescription::FontDescription[in-charge](_PangoFontDescription*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkDevice*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Atk::wrap_init()' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Gdk::Region::Region[in-charge](_GdkRegion*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Gdk::Color::Color[in-charge]()' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Gdk::Pixmap::gobj_copy()' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Pango::FontDescription::~FontDescription [in-charge]()' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Pango::FontDescription::gobj_copy() const' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkRectangle*)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_PangoLayout*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `typeinfo for Atk::Implementor' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Atk::Implementor::Implementor[not-in-charge]()' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Gdk::AtomStringTraits::to_c_type(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_AtkObject*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Pango::Language::Language[in-charge](_PangoLanguage*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkPixmapObject*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkDisplay*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Atk::Implementor::~Implementor [in-charge deleting]()' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Atk::Implementor::~Implementor [in-charge]()' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `virtual thunk [v:0,-16] to Atk::Implementor::~Implementor [in-charge]()' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkScreen*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Atk::Implementor::~Implementor [not-in-charge]()' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkPixbuf*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Gdk::wrap_init()' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Atk::Implementor::add_interface(unsigned long)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkDrawable*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkDragContext*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Pango::AttrList::AttrList[in-charge](_PangoAttrList*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkGC*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Pango::TabArray::TabArray[in-charge](_PangoTabArray*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `Glib::wrap(_GdkImage*, bool)' /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libgtkmm-2.4.so: undefined reference to `virtual thunk [v:0,-16] to Atk::Implementor::~Implementor [in-charge deleting]()'

Now the linking command is g++ -g -O2 -o planner -lgtkmm-2.4 planner-main.o

hope this isn't too long of a message.



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