Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <79218202D4B9D4118A290002A508E13B79C36F@PNZEXCHANGE> From: Ross Smith To: "'Dan Kyhl'" , Danny Smith 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) Content-Type: text/plain; charset="iso-8859-1" > 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/