delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/01/25/11:30:07

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: bk039 AT ncf DOT ca (Raymond Martineau)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: strange error from compiling
Date: Tue, 25 Jan 2005 11:27:40 -0500
Organization: National Capital Freenet, Ottawa, Ontario, Canada
Lines: 23
Sender: bk039 AT ncf DOT ca (Raymond Martineau)
Message-ID: <5pscv01amdss7u516arl92qlfaasu4ag80@4ax.com>
References: <HfuJd.630$E45 DOT 206 AT fe51 DOT usenetserver DOT com>
NNTP-Posting-Host: 47.141.hiper0-nic0.std.dialup.ncf.ca
Mime-Version: 1.0
X-Trace: theodyn.ncf.ca 1106670343 5556 134.117.141.47 (25 Jan 2005 16:25:43 GMT)
X-Complaints-To: complaints AT ncf DOT ca
NNTP-Posting-Date: 25 Jan 2005 16:25:43 GMT
X-Newsreader: Forte Agent 2.0/32.652
X-Given-From: Raymond Martineau <bk039 AT ncf DOT ca>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Tue, 25 Jan 2005 11:16:42 -0500, "Steve W." <swatts AT globalserve DOT net>
wrote:

>I am very new to this compiler.
>After comiling a program I try to get a executable.  I get an message as
>follows:
>
>I compile ok:
>C:\djgpp>gcc -c JanTesta.cpp
>

gcc is the C compiler.

It's recommended to use gpp instead (g++ under Linux), as that includes the
C++ libraries in the binary linkage.

>I get this message.
>c:/djgpp/tmp/cciOl7Fv.o(.eh_frame+0x11):JanTesta.cpp: undefined reference to
>`__
>_gxx_personality_v0'

That's what happend if you use the C compiler instead of the CPP compiler.

- Raw text -


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