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

Date: Wed, 1 Mar 2000 13:50:46 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Kozmas Muriopulos <kozmas_m AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: DJGPP - Undefined References
In-Reply-To: <20000301061612.74954.qmail@hotmail.com>
Message-ID: <Pine.SUN.3.91.1000301134802.13388C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 1 Mar 2000, Kozmas Muriopulos wrote:

> I recently downloaded a copy of DJGPP an can't compile programs because it 
> gives me undefined references.

You have a botched installation with parts of old version of DJGPP
still lying around, that's why you are having problems.  See below.

> Reading specs from d:/djgpp/lib/specs

Problem no.1: d:/djgpp/lib/specs is an old specs file, probably from
an old DJGPP installation.  You need to remove it and make sure that
the file d:/djgpp/lib/gcc-lib/djgpp/2.952/specs is used instead.

> GNU CPP version 2.7.2.1 (80386, BSD syntax)

Problem no.2: you have an old cpp.exe from GCC 2.7.2.1, which you
should remove.

> I tried the command "nm -C *.a" in the lib directory, redirecting the output 
> to a file and then used a text editor to search for the an undefined string 
> as per the compiler output.  All references to the undefined identifier 
> __rtti_class had a "U" next to them, I assume this means undefined, so I am 
> not sure if I am missing a library,any help will be greatly appreciated.

What are the size and the time stamp of yout libstdcxx.a file?  Are
you sure it is the one from gpp2952b.zip?  If not, you need to install
the latest version of libstdcxx.a.

Also, make sure you don't have an old libgcc.a in your d:/djgpp/lib 
directory.

- Raw text -


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