Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site cmu-cs-h.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!rochester!cmu-cs-pt!cmu-cs-h!rfb From: rfb@cmu-cs-h.ARPA (Rick Busdiecker) Newsgroups: net.unix Subject: Re: using libraries with ld (1) Message-ID: <240@cmu-cs-h.ARPA> Date: Thu, 8-Aug-85 12:30:01 EDT Article-I.D.: cmu-cs-h.240 Posted: Thu Aug 8 12:30:01 1985 Date-Received: Sun, 11-Aug-85 04:26:57 EDT Organization: Carnegie-Mellon University, CS/RI Lines: 14 > 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@cmu-cs-h.arpa