[Glade-users] Static linking

Tristan Van Berkom tvb at gnome.org
Mon Feb 13 14:33:50 EST 2006


Jesús Martínez wrote:
> How can I build a static GTK+ application?
> 

You should ask this question on gtk-list at gnome.org ...
or ask your system's compilation suite, it depends.

First of all, what system & compilers are you useing ?

consult the compiler/linker manual for creating staticly linked
applications, with gcc thats `gcc -static ...'

Also you must make sure that all the libs you are linking against
are available as static archives; on linux thats lib${libname}.a .

To generate the static libs for gtk+ you must compile the relevent
modules with "./configure --enable-static ..."; but either the
distro you are using or the -devel version of the GTK+ distro
should probably have them.

Cheers,
                           -Tristan


More information about the Glade-users mailing list