Mail Archives: djgpp/1997/02/26/22:40:14
Johan Davidsson wrote:
>
> I am trying to congigure DJGPP for my computer. But when I am running
> GCC or GXX I get the error message "ld.exe: cannot open -lgcc: File in
> wrong format". I have tried to consult the documentation but I can't
> figure out what to do. Can someone please help me out?
I can think of several things offhand:
- You have another compiler on your system that has its own version of
'ld.exe', and it is in your PATH before the DJGPP ld. Solution: Put
the DJGPP bin directory first in your PATH.
- You have defined the LIBRARY_PATH variable in your environment to
point to a directory that has a non-DJGPP copy of 'libgcc.a'.
Solution: Remove this setting from your environment.
- Your copy of 'libgcc.a' has somehow been corrupted. Try unzipping it
again, and also try scanning your computer for viruses.
- You used 'ar' to place a non-COFF object file into 'libgcc.a'. As ar
only accepts COFF-format objects (AFAIK), I don't see how this is
possible... in any case, either delete the offending file or reinstall
libgcc.a.
- You are installing DJGPP over an older version of DJGPP, but didn't
install the new libraries. Please make sure that you have the latest
version (v2.01 at present) and that you've deleted or moved all old
installations before installing v2.01.
- You have some other miscellaneous configuration problem that's hosing
DJGPP. See below.
If these don't help solve the problem, please download the DJGPP
Frequently Asked Questions list (v2/faq210b.zip from SimTel) and follow
the format indicated in chapter 6.12 for posting details of your
configuration to the newsgroup/mailing list. The FAQ can also be read
online at <http://www.delorie.com/djgpp/v2faq/>.
You could also volunteer to try out my DJVERIFY installation diagnostic
utility, which can detect common installation mistakes and recommend
solutions, and can also create a full bug report suitable for submission
to the mailing list. The latest alpha version can be had from
<ftp://ftp.delorie.com/pub/djgpp/alpha/vrfy033a.zip>, or you can email
me personally if you'd like to receive the latest Work In Progress.
Hope this helps!
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| "Starting flamewars since 1993" | http://www.cs.com/fighteer |
| *** NOTICE *** This .signature is generated randomly. |
| If you don't like it, sue my computer. |
---------------------------------------------------------------------
- Raw text -