delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/22/05:10:17

Date: Sun, 22 Jun 1997 12:09:47 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Richard Sim <nutter_ras AT geocities DOT com>
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: <Pine.SUN.3.91.970622120855.4249E-100000@is>
MIME-Version: 1.0

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.

- Raw text -


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