delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/16/05:11:22

Date: Sat, 16 Sep 2000 11:03:22 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: djgpp AT delorie DOT com
Subject: Re: V2 update installation problem
In-Reply-To: <nln4sscsq8q3kc39toftv6s51ucrtjvvvh@4ax.com>
Message-ID: <Pine.A41.4.05.10009161058310.96738-100000@ieva06.lanet.lv>
MIME-Version: 1.0
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


On Fri, 15 Sep 2000, AndrewJ wrote:

> On Fri, 15 Sep 2000 06:07:46 -0500, "!?" <lwp04147 AT bayou DOT uh DOT edu> wrote:
> 
> >I have had version 2 since it came out, and a few months ago, I
> >decided to download the whole package again and update.
> 
> [snip]
> 
> >C:\DJGPP\tests>makeall
> >Bad command or file name
> >make.exe: Nothing to be done for `all'.
> >gcc -o check.exe check.o slist.o objs.o
> >check.o: In function `main':
> >check.cc:291: undefined reference to `__throw'
> >check.cc:313: undefined reference to `__throw'
> >check.cc:355: undefined reference to `__throw'
> >check.cc(.text+0x1461): undefined reference to `__throw'
> >check.cc(.text+0x1466): undefined reference to `__throw'
> >check.cc(.text+0x1516): undefined reference to `terminate(void)'
> >objs.o: In function `Object::Object(char *)':
> >objs.cc:15: undefined reference to `__throw'
> >objs.cc(.text+0xc6): undefined reference to `__throw'
> >objs.cc(.text+0xd1): undefined reference to `__throw'
> >objs.cc(.text+0x117): undefined reference to `terminate(void)'
> >collect2: ld returned 1 exit status
> >make.exe: *** [check.exe] Error 1
> >C:\DJGPP\tests>

It seems to be installation problem of gcc. Please check whether
binaries of old version are completely removed. In this case I suspect
lib/libgcc.a from gcc-2.7.2.1 is still there (but it shouldn't). But
please check also other obsolete files.

> 
> I'm not exactly sure why, but GCC can no longer be used to compile C++ (???).

It's not so.

> Edit the makefile or whatever, and replace every occurrence of GCC with GPP and
> it should work.
> 

The only real difference between GCC and GPP is that the latest adds
-lstdcxx -lm to linker command line. You can use GCC for C++ but then it's
needed to add these libraries explicitly when linking.

Andris


- Raw text -


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