delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/26/08:22:35

From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT tu-chemnitz DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GCC
Date: Wed, 26 Mar 1997 11:30:41 +0100
Organization: TU Chemnitz-Zwickau
Lines: 22
Message-ID: <3338FAD1.6435@Mathematik.tu-chemnitz.de>
References: <3337FA64 DOT 5138 AT geocities DOT com>
NNTP-Posting-Host: env.hrz.tu-chemnitz.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019