Thread View: comp.sys.next.programmer
3 messages
3 total messages
Started by Steven R. Staton
Tue, 01 Sep 1992 15:10
ld not recognizing ar/ranlib archives
Author: Steven R. Staton
Date: Tue, 01 Sep 1992 15:10
Date: Tue, 01 Sep 1992 15:10
17 lines
1171 bytes
1171 bytes
When I build an archive (library) using 'ar r <objectfilelist>' and then
run ranlib on it, I cannot link the object modules into any code. ld
reports:
/bin/ld: table of contents for archive: /usr/lib/libTest.a is out of date;
rerun ranlib(1) (can't load from it)
When I build the f2c package, it does the exact same thing except that I
can link the libF77 and libI77 libraries without incident. The only
difference between how f2c makes it's libraries is in the source; ie. no
difference in the methodology.
Does anyone know what secret ingredient I am missing?
--
Steven R. Staton | The two most common things in the
Micrografx, Inc. | Universe are Dark Matter and Stupidity
sstaton@micrografx.com |
Re: ld not recognizing ar/ranlib archives
Author: Zenon Fortuna
Date: Thu, 03 Sep 1992 00:05
Date: Thu, 03 Sep 1992 00:05
26 lines
1537 bytes
1537 bytes
In article <1992Sep1.151041.15826@micrografx.com> sstaton@micrografx.com (Steven R. Staton) writes: >When I build an archive (library) using 'ar r <objectfilelist>' and then >run ranlib on it, I cannot link the object modules into any code. ld >reports: > >/bin/ld: table of contents for archive: /usr/lib/libTest.a is out of date; >rerun ranlib(1) (can't load from it) > >When I build the f2c package, it does the exact same thing except that I >can link the libF77 and libI77 libraries without incident. The only >difference between how f2c makes it's libraries is in the source; ie. no >difference in the methodology. > >Does anyone know what secret ingredient I am missing? >-- > Steven R. Staton | The two most common things in the > Micrografx, Inc. | Universe are Dark Matter and Stupidity > sstaton@micrografx.com | It may happen, that you had copied your *.a file from temporary location, after calling your ranlib. If this is the case, the time change caused by copying results in the linker problems you quote. You can use "cp -p ..." to preserve the date/time. -Z.
Re: ld not recognizing ar/ranlib archives
Author: Robert La Ferla
Date: Wed, 09 Sep 1992 17:58
Date: Wed, 09 Sep 1992 17:58
12 lines
1021 bytes
1021 bytes
In article <1992Sep1.151041.15826@micrografx.com> sstaton@micrografx.com (Steven R. Staton) writes: > When I build an archive (library) using 'ar r <objectfilelist>' and then > run ranlib on it, I cannot link the object modules into any code. ld > reports: > > /bin/ld: table of contents for archive: /usr/lib/libTest.a is out of date; > rerun ranlib(1) (can't load from it) [text deleted] > Does anyone know what secret ingredient I am missing? % ranlib -t filename
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads