Mail Archives: djgpp/1997/03/26/08:22:35
Patrick Dawson wrote:
>
> I'm having trouble compiling a file with GCC. I used
> 'gcc simple.c -o simple.exe -lm'.
> I got the error message 'ld.exe:cannot open -lm:File is in wrong
> format'.
Please post here the output from the following command:
gcc -v simple.c -o simple.exe
And check also, that the file 'libm.a', which is in
your %DJDIR%/lib directory is not corrupted.
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
- Raw text -