Sender: nate AT cartsys DOT com Message-ID: <36197737.29D65F3@cartsys.com> Date: Mon, 05 Oct 1998 18:49:43 -0700 From: Nate Eldredge X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486) MIME-Version: 1.0 To: Emil Evers CC: djgpp AT delorie DOT com, emil AT mazuma DOT net DOT au Subject: Re: PLEASE HELP: novice has problem compiling References: <01bdec1f$7f911dc0$a7d03dca AT default> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Emil Evers wrote: > > I have recently downloaded djgpp and am trying to run a simple program. I > wrote the program in emacs, saved it and put it in my djgpp\bin directory. > When I try to compile the program in dos (starter.c) with > > gcc starter.c -o starter.exe -lm > > I get the message: > > ld.exe: cannot open -lm :File in wrong format Two thoughts: 1. Your DJGPP environment variable may be set incorrectly, or not at all. See README.1ST for details on what to do. 2. The file lib/libm.h in your DJGPP directory may be corrupted. If so, reinstall the DJDEV package. If neither of those help, read FAQ section 6.16 and post what it requests. > My email is emil AT mazuma DOT net DOT au But your mail header says something different. You might want to resolve that. -- Nate Eldredge nate AT cartsys DOT com