using libraries with ld (1)

Rick Busdiecker rfb at cmu-cs-h.ARPA
Fri Aug 9 02:30:01 AEST 1985


> Some versions of "ld" support the "-Llibpath" option to specify an
> additional directory to search for libraries.
> 
> You can always just name the library in the "ld" or "cc" command:
> 	cc -o myprog myprog.o mysub.o mylib.a -lm -lplot

I was under the impression that libraries specified in the way that mylib.a
is have the entire library linked in rather than just those routines which
are needed because of undefined identifiers.  Does anyone know if this is
actually the case?

				Rick Busdiecker
				rfb at cmu-cs-h.arpa



More information about the Comp.unix mailing list