Mail Archives: djgpp/1997/09/24/19:57:11
At 02:03 9/23/1997 GMT, Susan Battle wrote:
>When I compile my program using gcc like this, gcc program.c, I get the
>following error message. ld.exe: cannot open -lgcc: File in wrong format.
>Every single time I try to compile a program, any program. So please if
>you know whats wrong can you help me.
>What is the exact way to go about compiling a file, or especially a .s
>file. Thank :)
Jeez! If we ever find a common cause between all of these, maybe it should
be an FAQ.
Make sure of the following:
- The file libgcc.a in the lib subdirectory is the one from the standard
DJGPP distribution.
- Your ld.exe in the bin subdirectory is the one from the standard DJGPP
distribution.
- You don't have any other "ld"'s along your PATH.
- You don't have any viruses or anything.
- Your DJGPP and PATH environment variables are set correctly, per README.1ST.
If all those are correct, and it still doesn't work, post the output of this
command:
gcc -v -Xlinker --verbose program.c
Perhaps that will yield some insights to us here.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -