delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/01/23:06:35

From: Hans-Bernhard Broeker <broeker AT acp3bf DOT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP - Undefined References
Date: 1 Mar 2000 13:41:11 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 49
Message-ID: <89j6ln$k17$1@nets3.rz.RWTH-Aachen.DE>
References: <20000301061612 DOT 74954 DOT qmail AT hotmail DOT com>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
Mime-Version: 1.0
X-Trace: nets3.rz.RWTH-Aachen.DE 951918071 20519 137.226.32.75 (1 Mar 2000 13:41:11 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 1 Mar 2000 13:41:11 GMT
User-Agent: tin/1.4-19991113 ("No Labels") (UNIX) (Linux/2.0.0 (i586))
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Kozmas Muriopulos <kozmas_m AT hotmail DOT com> wrote:
> The following are the compilation errors produced by the compiler

> Reading specs from d:/djgpp/lib/specs
> gcc version 2.95.2 19991024 (release)
> d:/djgpp/bin/cpp.exe -lang-c++ -v -isystem d:/djgpp/bin/include
[...]
> GNU CPP version 2.7.2.1 (80386, BSD syntax)

I suspect this to be the core of your problem. You have a mixup of
different gcc versions on your system. 'cpp' is from gcc version
2.7.2.1 (a rather old one), while your 'gcc' is the up-to-date 2.95.2.
Possibly, other parts of the old compiler are also still lying
around. 'libgcc.a' is the most probable candidate for why you're
getting undefined references.

Looks like you didn't follow the installation instructions for 2.95.2,
closely, otherwise that copy of 'cpp' ought to have been deleted or
replaced by a newer one. 

> The following is the output produced by typing set at the command line
[...]
> PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\SONY_8X;C:\DOSX;D:\DJGPP\BIN;C:\EMACS;C:\FLOW;
> DJGPP=d:/djgpp/djgpp.env

> The following is a listing of my autoexec.bat file
[...]
> PATH=C:\sony_8x;C:\DOSX;d:\djgpp\bin;C:\EMACS;c:\flow;
> d:\djgpp\bin\setdjgpp D:\djgpp d:/djgpp
[...]
> 
> REM Following lines were added by LBINSTDJ, the DJGPP installer
> SET PATH=D:\DJGPP\BIN;%PATH%
> SET DJGPP=D:\DJGPP\djgpp.env

This seems not to the autoexec.bat that resulted in the 'set' listing
shown above.  Your PATH is a bit strange: you autoexec.bat doesn't add
the WINDOWS directories, but yet, they're there, in the 'set' output.
You can remove D:\djgpp\bin from your first 'path' command, the one
added by LBINSTDJ will put it where it belongs.

'setdjgpp.bat' is a rather old-ish method of setting up DJGPP, and you
should not generally execute it like you did ('call' is missing, in
front of it). The ctrl-Z character may cause everything below it to be
ignored, when executing the autoexec.bat.  Remove it, and the setdjgpp
call, and things may improve.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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