delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/14/15:36:24

Date: Thu, 14 Jun 2001 22:32:34 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Chris Wilkinson" <chrisw AT wam DOT umd DOT edu>
Message-Id: <2593-Thu14Jun2001223233+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <9gaoaa$l53$1@hecate.umd.edu> (chrisw@wam.umd.edu)
Subject: Re: Link errors with Debug switch on
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010614110108 DOT 972M-100000 AT is> <9gaoaa$l53$1 AT hecate DOT umd DOT edu>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Chris Wilkinson" <chrisw AT wam DOT umd DOT edu>
> Newsgroups: comp.os.msdos.djgpp
> Date: Thu, 14 Jun 2001 12:21:27 -0400
> 
>     and the output from gcc using  -g and -v switches. Link errors reported
> at the end.
> 
> Start of dump:
> cd C:\FFOP\src\OneUnit
> gcc -o lsbfnew.exe lsbfnew.c lssolve.c ipmpar.c dcdflib.c -v -g -Wall
> 
> C:\FFOP\src\OneUnit>gcc -o lsbfnew.exe lsbfnew.c lssolve.c ipmpar.c
> dcdflib.c -v -g -Wall
> Reading specs from c:/rsxntdj/lib/specs

Here's your problem: you have RSXNTDJ installed, and GCC uses the
specs file from there.  It most probably causes all this trouble.

Solution: set the DJGPP variable to point to the correct djgpp.env,
and remove from the environment variables such as C_INCLUDE_PATH and
LIBRARY_PATH that point to the RSXNTDJ directories.

> c:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -v -D__GNUC__=2 -D__GNUC_M
> INOR__=95 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=2 -D__unix__ 
> -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=2 -D__unix
>  -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=2 -g -Wall

Also note that this indicates you have DJGPP v2.02 installed.  If this
is true, I suggest to upgrade to v2.03.  If you already have v2.03
installed, you should look for the reason why GCC picks up a wrong
minor version (it might be because of RSXNTDJ).

- Raw text -


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