X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Richard Dawe Newsgroups: comp.os.msdos.djgpp Subject: Re: gcc332b broken?? Date: Mon, 03 Nov 2003 22:35:12 +0000 Lines: 48 Message-ID: <3FA6D820.DBBB7B7B@phekda.freeserve.co.uk> References: NNTP-Posting-Host: 62.136.3.193 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsg3.svr.pol.co.uk 1067899731 3413 62.136.3.193 (3 Nov 2003 22:48:51 GMT) NNTP-Posting-Date: 3 Nov 2003 22:48:51 GMT X-Complaints-To: abuse AT theplanet DOT net X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 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. nospam AT none DOT com wrote: > > Andrew Cottrell wrote: > > >>hi, I am encountering a strange problem with the new gpp332b.zip > >> > >>c:/devtools/djgpp/tmp/ccmZcG4a.o(.eh_frame+0x11):hello.cpp: undefined > >>reference to `___gxx_personality_v0' > >>collect2: ld returned 1 exit status > >> > >>i get this with a simple helloworld c++ program. > > ..snip.. > >>if i rename my helloworld application to a .c filename, then it > >>compiles fine. it seems like some problem in the c++ compiling. > >> > >>has anyone else seen this problem? > > In the past I have gotten similar errors when I link C++ objects from > > one compiler with another. > > > Check that you downloaded all the relevant GCC 3.3.2 compiler zip > > files. One way of doing this is to check the gcc3*.mft in the manifest > > dirrectory and remove the gcc331 (or the previous version) directories > > from the lib\gcc-lib\djgpp\3.31 and lang\cxx\3.32 directories. > > Hi, thanks for the reply. > > This is a clean install on a system that never had djgpp installed. I > downloaded gcc332b.zip and gpp332b.zip, along with the rest of the > required zip files, set the environment variables, etc... (this one is > XP) > > it didn't work. c code compiled fine, but c++ code didn't. [snip] How are you compiling it? You should be using g++. E.g.: g++ -g -Wall -o helloworld helloworld.cpp You need to use g++ to link C++ programs - "gcc" isn't enough. Regards, -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ] "You can't evaluate a man by logic alone." -- McCoy, "I, Mudd", Star Trek