Date: Sun, 22 Jun 1997 12:09:47 +0300 (IDT) From: Eli Zaretskii To: Richard Sim cc: djgpp AT delorie DOT com Subject: Re: More on what does this error mean... In-Reply-To: <33a91028.0@duster.adelaide.on.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Thu, 19 Jun 1997, Richard Sim wrote: > I've only just downloaded DJGPP and this is the first thing that You've just downloaded it and already managed to mess with DJGPP.ENV and screw it up! Please make this (incorrect) line DJDIR=%:/>DJGPPV2% To say this (like it it did before): DJDIR=%:/>DJGPP% Please do NOT edit DJGPP.ENV unless you understand its syntax and know exactly what you are doing. I'm not sure if this line is the source of your trouble, but you might try your compile after reverting it to see if it helps. If it doesn't, read on. > When I try to compile 3DGPL I get this error: > 'I:\DJGPPV2\BIN/ld.exe : cannot open -lm: File in wrong format' > ?????? Please redirect the output of gcc to a file (use `redir' if you need), and add -v switch to the link command line. For example: i:\djgppv2\bin\echo.exe *.c > flist redir -o gcc.log -eo gcc -v demo.c @flist -lm Then post the file `gcc.log' created by this command. Also, see if you have a file called "-lm" or "libm.a" anywhere on your disk(s) and post what does the DIR command print about them.