Mail Archives: djgpp/1997/06/03/20:25:05
Matt Pierce wrote:
>
> Hey. I'm having a problem when I try to link a program in RHIDE. I've
> skimped the code down to just an empty main() function with no header
> files and no complications, but when I try to link it, the linker gives
> me the error 'ld.exe: cannot open -lgcc: File in wrong format.' I
> searched through my djgpp directory for any lgcc.* file, but there
> didn't seem to be any. Anyone know what's going on?
what you're actually looking for is libgcc.a (-lfoo causes ld to look
for libfoo.a in the lib search path).
As to what's wrong, all I can think of (and I could easily be wrong) is
libgcc.a has been corrupted somehow. If this is the case, try
re-extracting it from the zip it came from (don't know if it's
djdev*.zip or gcc*.zip).
Bill
--
Leave others their otherness.
- Raw text -