This is the mail archive of the
mailing list for the Cygwin project.
RE: undefined reference to `__gxx_personality_sj0'
- 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
- Date: Mon, 25 Feb 2002 12:06:00 +1300
- Subject: RE: undefined reference to `__gxx_personality_sj0'
> From: Dan Kyhl [mailto:DANKY@dk.ibm.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