home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.coherent
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!spool.mu.edu!umn.edu!csus.edu!netcom.com!ringgold
- From: ringgold@netcom.com (Thomas Essex)
- Subject: Additional library directories
- Message-ID: <1992Dec12.063736.25929@netcom.com>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Date: Sat, 12 Dec 1992 06:37:36 GMT
- Lines: 22
-
- I am currently working on a project, and want to build my own library.
- However, whenever I specify the -L directive to indicate the additional
- library path, I get an error indicating it can't find my library.
- Here's an example of how my command line looks:
-
- cc -o program program.c -L/usr/local/lib -lmylib
-
- The error I get indicates it is unable to locate library libmylib.a. And
- looking withing the /usr/local/lib directory I have the file libmylib.a.
- Also, if I link /usr/local/lib/libmylib.a to /usr/lib the command line works
- perfectly.
- Can someone tell me what I'm doing wrong?
-
-
- Tom
-
- P.S. I'm using the standard make and cc that was shipped with Coherent 4.1.
- --
-
- ringgold@netcom.com
-
- Motto: PFP!!! ;)
-