delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/01/19:00:10

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Dmitry Pavlov" <dmitryp AT peterlink DOT ru>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem after updating my version of DJGPP
Date: Sat, 2 Feb 2002 02:44:08 +0300
Organization: Peterlink News System
Lines: 21
Message-ID: <a3f9au$jpu$1@dragon.infopro.spb.su>
References: <9285851396b96165389d6c058d27cf95 DOT 62691 AT mygate DOT mailgate DOT org>
NNTP-Posting-Host: spb-4-233.dialup.peterlink.ru
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> Unzipped them into my DJGPP directory replacing the previous version of
> the files that I had.  But now, whenever I try to build ANY program,
> they compile fine, but when it comes time to link, I allways get this
> error:
> undefined reference to `__gxx_personality_v0
> Note, I allways use Rhide to make my programs, if that makes any
> difference.

Maybe RHIDE calls gcc to compile your C programs as C++ programs.
Note that file extension case is meaningful for gcc. "prog.c" is recognized
by gcc as C source but "prog.C" is
recognized as C++ source. In the new version of gcc, you should use
the -lstdcxx option when linking
source as C++, even if it is really C source. So rename *.C to *.c and
probably all will be OK.

(sorry for my English)

Dmitry


- Raw text -


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