Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site mcgill-vision.UUCP Path: utzoo!linus!philabs!micomvax!musocs!mcgill-vision!mouse From: mouse@mcgill-vision.UUCP (der Mouse) Newsgroups: net.unix Subject: Re: using libraries with ld (1) Message-ID: <114@mcgill-vision.UUCP> Date: Wed, 14-Aug-85 17:50:05 EDT Article-I.D.: mcgill-v.114 Posted: Wed Aug 14 17:50:05 1985 Date-Received: Mon, 19-Aug-85 20:42:05 EDT References: <240@cmu-cs-h.ARPA> Organization: McGill University, Montreal Lines: 18 >> 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? I had occasion to play with the loader a while ago. Under 4.2bsd at least, this is not the case. Naming an archive in full is exactly the same as using a -l option which refers to the same archive. -- der Mouse System hacker and general troublemaker CVaRL, McGill University Hacker: One responsible for destroying / Wizard: One responsible for recovering it afterward