shared libraries

Mike Bilow mikebw at colossus.bilow.com
Wed Apr 12 17:21:55 EDT 2000


The standard list of directories is specified when GCC is compiled.  On a
Debian slink system, for example, it is:

	/usr/lib/gcc-lib/
	/usr/lib/gcc/
	/usr/lib/
	/lib/

The list is sparse because (1) certain special subdirectories of these
(such as /usr/lib/gcc-lib/i486-linux/2.7.2.3/) are hardcoded for special
purposes, and (2) it can cause major grief if this list is too inclusive
as you will end up linking the wrong functions or the wrong versions of
functions.  The goal here is predictable behavior.

-- Mike


On Tue, 11 Apr 2000, Ron Peterson wrote:

> Stupid question:  Why does the linker find -lm but not, say, -lqt
> without -L/usr/local/qt/lib?  I.E. - where are the default locations
> specified?  I always just hack in -L/something/something as needed until
> things compile.  Wouldn't hurt to actually know what I'm doing...


-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list