|
|
ld error -- archive out of date?? help please
|
|
|
|
Junior Member
Join Date: Oct 2001
Location: Los Angeles
Status:
Offline
|
|
I get the following errors when I try to compile any app-- in Proj. Builder and c++.
/usr/bin/ld: table of contents for archive: /usr/lib/libstdc++.a is out of date; rerun ranlib(1) (can't load from it)
/usr/bin/ld: table of contents for archive: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a is out of date; rerun ranlib(1) (can't load from it)
I recently did some fink installations and ran Norton Speed Disk. I assume either one of these two processes is the cause of my problem. I read the man pages for 'ld' and 'ranlib' but it's all Greek to me. ranlib's page did mention a bug where archives can be made out-of-date, but I'm not sure how to make archive in-date. I just want my compiler to work again!!
Anyone know the solution to my problem?
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Virginia, US
Status:
Offline
|
|
Not sure why those are out of date, but however... just run ranlib on them.
ranlib /usr/lib/libstdc++.a
ranlib /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a
You might need to do that as root (i.e. use sudo).
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Oct 2001
Location: Los Angeles
Status:
Offline
|
|
Tried that. No go:
[localhost:/Users/me] root# ranlib /usr/lib/libstdc++.a
ranlib: file: /usr/lib/libstdc++.a(cstringi.o) has no symbols
ranlib: file: /usr/lib/libstdc++.a(builtinbuf.o) has no symbols
[localhost:/Users/me] root# ranlib /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_ctors.o) has no symbols
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_fixtfdi.o) has no symbols
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_fixunstfdi.o) has no symbols
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_fixunsxfdi.o) has no symbols
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_fixunsxfsi.o) has no symbols
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_fixxfdi.o) has no symbols
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_floatditf.o) has no symbols
ranlib: file: /usr/lib/gcc/darwin/2.95.2/libcc_dynamic.a(_floatdixf.o) has no symbols
I think I'm just going to reinstall the dev tools.
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Oct 2001
Location: Los Angeles
Status:
Offline
|
|
Well, whatever was wrong, the reintall fixed it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|