delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/07/21/15:00:28

From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Installation Problem
Date: Sun, 21 Jul 2002 19:30:43 +0100
Lines: 30
Message-ID: <3D3AFDD3.795743F6@phekda.freeserve.co.uk>
References: <qD%Z8.914378$yP6 DOT 29417484 AT Flipper> <3d38af6e$0$32644$9b622d9e AT news DOT freenet DOT de> <ITk_8.953349$yP6 DOT 30654750 AT Flipper> <3d3aa2f2$0$15186$9b622d9e AT news DOT freenet DOT de> <Ggy_8.977643$yP6 DOT 31307954 AT Flipper> <3405-Sun21Jul2002180755+0300-eliz AT is DOT elta DOT co DOT il> <poB_8.984023$yP6 DOT 31512520 AT Flipper>
NNTP-Posting-Host: modem-113.tellurium.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: newsg2.svr.pol.co.uk 1027277454 26683 62.136.43.113 (21 Jul 2002 18:50:54 GMT)
NNTP-Posting-Date: 21 Jul 2002 18:50:54 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586)
X-Accept-Language: de,fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello.

Daniel Noorduin wrote:
> I already did. I removed those three lines and deleted rsxnt completely and
> it got rid of some of the errors, but for some odd reason I still can't
> compile a simple C++ ' Hello World' program (While it does compile C
> programs). Here's what i get when i use the -v command:

You're getting closer!

[snip]
>  c:/djgpp/lib/gcc-lib/djgpp/3.1/collect2.exe -o blah.exe
> c:/djgpp/lib/crt0.o -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djgpp/3.1 -Lc:/djg
> pp/bin -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djgpp/3.1/../../..
> c:/djgpp/tmp/cc5FwdEU.o -lgcc -lc -lgcc -Tdjgpp-x.djl
[snip]
> c:/djgpp/tmp/cc5FwdEU.o(.eh_frame+0x11):blah.cc: undefined reference to
> `___gxx_personality_v0'
> collect2: ld returned 1 exit status

My guess is that you're trying to compile & link your C++ program using "gcc"
instead of "gpp". You need to use gpp, so that the standard C++ library is
linked in. Try something like this:

    gpp -g -Wall -o foo foo.cpp

Hope that helps, regards,

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


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