Static Link of an application problem



Greetings guys:

I'm trying to do a static link of an application at the behest of my
boss.  I have decided to upgrade my install of gtkmm to the latest
version available, and I have successfully installed it (and all its
requested dependencies) using the --enable-static switch when running
the configure script for each one.

When I compile and link my application, I get two basic types of link
error messages:

/opt/gnome/lib/libgmodule-2.0.a(gmodule.o)(.text+0x698): In function
`g_module_open': warning: Using 'dlopen' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking

and

/usr/local/lib/libgtk-x11-2.0.a(gtkaboutdialog.o)(.text+0x1e): In
function `IA__gtk_about_dialog_get_type':
/home/bob/Downloads/gtk+-2.8.9/gtk/gtkaboutdialog.c:175: undefined
reference to `g_intern_static_string'

If I'm doing a static link, why is glibc being linked as a shared
library?  I'm confused.

Happy New Year everyone!

Bob Caryl



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