delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/22/19:35:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: C++ link error: undefined reference to `___gxx_personality_v0`
X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3
Date: Wed, 23 Oct 2002 09:35:26 +1000
Message-ID: <4A133BBC82A97C42A9CC3BB41C4620CA4DB1B6@sydmxs01.salmat.com.au>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Ken Foskey" <Ken DOT Foskey AT salmat DOT com DOT au>
To: <cygwin AT cygwin DOT com>
Reply-To: <foskey AT optushome DOT com DOT au>
Note-from-DJ: This may be spam
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g9MNZnY05342

I just updated cygwin and it updated to gcc 3.2.1.  I now have alinker error.


The default linker is gcc as in:

gcc   ondreprt.o   -o ondreprt
ondreprt.o(.eh_frame+0x11):ondreprt.cpp: undefined reference to `___gxx_personality_v0'
collect2: ld returned 1 exit status
make: *** [ondreprt] Error 1

When compiling C++ you need the default linker to be g++ as in:

$ make
g++   ondreprt.o   -o ondreprt

$


Can the default linker in the make files be changed to g++ by default?

Thanks
KenF


**************************************************************************************

This e-mail and any files transmitted with it are confidential to Salmat Pty Ltd intended solely for the use of the individual or entity to whom they are addressed.  If you have received this e-mail in error please return to the sender and delete from your systems.

This e-mail message has been swept for the presence of computer viruses known to Salmat's virus patterns.

Salmat Pty Ltd	ACN 066 833 458

**************************************************************************************


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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