Mail Archives: djgpp/1999/04/27/03:35:52
On Tue, 27 Apr 1999, Artjacob wrote:
> ".. Error: C:\GCC\BIN/ld.exe: cannot open -lgcc: File Format not
> recognized .."
>
> Now.. "GCC" is the directory i have placed rhide.. All i can figure
> is that ld.exe is looking for a file named "-lgcc"
Actually, it looks for the file libgcc.a (which should be in your lib
subdirectory), and when that fails, it looks for -lgcc literally. The
GCC compiler driver adds -lgcc (and -lc) to the switches it passes to
the linker; adding -v to the link command line would have showed this
to you. (Looking in the FAQ, where section 8.1 explains this, would
have also helped.)
So, you need to find out why does the linker fail to find libgcc.a.
- Raw text -