home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / coherent / 6179 < prev    next >
Encoding:
Text File  |  1992-12-12  |  1.1 KB  |  32 lines

  1. Newsgroups: comp.os.coherent
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!spool.mu.edu!umn.edu!csus.edu!netcom.com!ringgold
  3. From: ringgold@netcom.com (Thomas Essex)
  4. Subject: Additional library directories
  5. Message-ID: <1992Dec12.063736.25929@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. Date: Sat, 12 Dec 1992 06:37:36 GMT
  8. Lines: 22
  9.  
  10.   I am currently working on a project, and want to build my own library.
  11. However, whenever I specify the -L directive to indicate the additional
  12. library path, I get an error indicating it can't find my library.
  13.   Here's an example of how my command line looks:
  14.  
  15.   cc -o program program.c -L/usr/local/lib -lmylib
  16.  
  17. The error I get indicates it is unable to locate library libmylib.a. And
  18. looking withing the /usr/local/lib directory I have the file libmylib.a.
  19. Also, if I link /usr/local/lib/libmylib.a to /usr/lib the command line works
  20. perfectly.
  21.   Can someone tell me what I'm doing wrong? 
  22.  
  23.  
  24.     Tom
  25.  
  26. P.S. I'm using the standard make and cc that was shipped with Coherent 4.1.
  27. -- 
  28.  
  29. ringgold@netcom.com
  30.  
  31. Motto: PFP!!!  ;)
  32.