Calling shared libs from static libs
Michael Matz
matz@suse.de
Wed Oct 1 12:12:00 GMT 2003
Hi,
On Wed, 1 Oct 2003, Russell Shaw wrote:
> ld -o shapegen -static /usr/lib/gcrt1.o main.o gui.o xmalloc.o object.o menu.o dialog.o
> -L /usr/X11R6/lib
> -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0
> -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
> -lc /usr/lib/gcc-lib/i386-linux/3.3.1/libgcc.a
You of course have to link against the necessary libraries. -lX11 to
start with.
Ciao,
Michael.
More information about the Binutils
mailing list