home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / programm / 5949 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.5 KB  |  37 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!decwrl!csus.edu!netcom.com!netcomsv!resonex!zenon
  3. From: zenon@resonex.com (Zenon Fortuna)
  4. Subject: Re: ld not recognizing ar/ranlib archives
  5. Message-ID: <1992Sep3.000537.3433@resonex.com>
  6. Organization: Resonex Inc., Sunnyvale CA
  7. References: <1992Sep1.151041.15826@micrografx.com>
  8. Date: Thu, 3 Sep 1992 00:05:37 GMT
  9. Lines: 26
  10.  
  11. In article <1992Sep1.151041.15826@micrografx.com> sstaton@micrografx.com (Steven R. Staton) writes:
  12. >When I build an archive (library) using 'ar r <objectfilelist>' and then  
  13. >run ranlib on it, I cannot link the object modules into any code.  ld  
  14. >reports:
  15. >
  16. >/bin/ld: table of contents for archive: /usr/lib/libTest.a is out of date;  
  17. >rerun ranlib(1) (can't load from it)
  18. >
  19. >When I build the f2c package, it does the exact same thing except that I  
  20. >can link the libF77 and libI77 libraries without incident.  The only  
  21. >difference between how f2c makes it's libraries is in the source; ie. no  
  22. >difference in the methodology.
  23. >
  24. >Does anyone know what secret ingredient I am missing?
  25. >-- 
  26. >     Steven R. Staton      |   The two most common things in the
  27. >     Micrografx, Inc.      | Universe are Dark Matter and Stupidity
  28. >  sstaton@micrografx.com   |
  29.  
  30. It may happen, that you had copied your *.a file from temporary location, after
  31. calling your ranlib. If this is the case, the time change caused by copying
  32. results in the linker problems you quote.
  33.  
  34. You can use "cp -p ..." to preserve the date/time.
  35.  
  36.     -Z.
  37.