ld or gcc failing?

Michael K. Elwood mkelwood@qsicorp.com
Fri Sep 24 13:37:00 GMT 1999


> I have the following problem:
>
> I compiled many C modules, and I'm using `ld' to build a '.a' library file
> and it fails with the following error:
> <<
> rm -f Dobj3.a
> ld -r -o Dobj3.a do243d.o re247d.o in245d.o bo251d.o ch249d.o po253d.o
etc. etc.

ar is the correct tool for creating libraries (archives). ld won't do what
you want here. Don't forget to run ranlib on your library when you are done
creating it (if you want it to be indexed.) Hope this helps.

Best regards,

MKE




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list