delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/24/18:08:31

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <79218202D4B9D4118A290002A508E13B79C36F@PNZEXCHANGE>
From: Ross Smith <rosss AT pharos DOT co DOT nz>
To: "'Dan Kyhl'" <DANKY AT dk DOT ibm DOT com>,
Danny Smith
<danny_r_smith_2001 AT yahoo DOT co DOT nz>
Cc: cygwin AT cygwin DOT com
Subject: RE: undefined reference to `__gxx_personality_sj0'
Date: Mon, 25 Feb 2002 12:06:00 +1300
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

> From: Dan Kyhl [mailto:DANKY AT dk DOT ibm DOT com]
> 
> yes maybe.
> I installed and compiled gcc 3.03, but I get this error both 
> with 2.95.3
> and 3.03.
> Maybe my different paths are not setup up correctly!

I got the same error after installing gcc 303. It turned out
that the static libstdc++ was still being searched for in
/usr/lib first, so it was picking up the old one from gcc 295.
I fixed it by setting the LIBRARY_PATH environment variable to
/usr/local/lib, so it would search there first and find gcc
303's libstdc++ first.

I don't know why it does this; gcc should search the library
directory appropriate to its install prefix (/usr/local by
default) first, but it doesn't seem to do that on Cygwin. I
have the same setup on my Linux box (gcc 295 in /usr, 303 in
/usr/local) and everything works fine there. (I originally
thought it was because Linux uses a dynamic libstdc++, but
some testing showed that it still worked with static
libraries, so I don't know what's going on with Cygwin.)

--
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