Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!pyrdc!eliot!janm From: janm@eliot.UUCP (Jan Morales) Newsgroups: comp.unix.questions Subject: question on -L option of cc Message-ID: <516@eliot.UUCP> Date: 8 Mar 90 20:31:30 GMT Reply-To: janm@eliot.UUCP (Jan Morales) Organization: Unitech Software, Inc., Reston, VA Lines: 12 The SunOS manual describes the "-L" option to the "cc" command as adding the specified directory "to the list of directories containing object- library routines". My question is: in what order are the directories searched to find a library? If I say "-L/mylibs -lfoo" and a "libfoo.a" exists in both "/usr/lib" and "/mylibs", which will be used? I am using "cc" on SunOS 4.0.1 on a Sun 3 and a Sun 4. Thanks in advance. Post or e-mail as you see fit. Jan -- {uunet,pyramid}!pyrdc!eliot!janm