Date: Sat, 16 Sep 2000 11:03:22 +0200 (WET) From: Andris Pavenis To: djgpp AT delorie DOT com Subject: Re: V2 update installation problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk On Fri, 15 Sep 2000, AndrewJ wrote: > On Fri, 15 Sep 2000 06:07:46 -0500, "!?" 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