lemoncube.com Search: (normal)
Articles
Links
News
Projects

Disclaimer

Statically and dynamically linking at the same time

Twas mucking around with some sample lesstif programs and I kinda wondered how you make a program that is statically linked with lesstif, but dynamically linked with everything else:

 gcc  -I/usr/X11R6/include -L/usr/X11R6/lib -o d2  d2.c \
   /usr/X11R6/lib/libXm.a  -lXt -lX11
By explicitly specifying libXm.a it statically links against it, but dynamically links against the others.

pablo , 2003-11-11 01:04:36