_gxx_personality_sj0 undefined.

David Korn dkorn@pixelpower.com
Tue Oct 30 09:20:00 GMT 2001


>-----Original Message-----
>From: Richard Slaughter [ mailto:rslaughter@anatel.com ]
>Sent: 30 October 2001 16:01

>Hi All,
>I've built the arm-elf tool chain with the following
>gcc 3.0.2 release
>binutil 2.11.92.0.7
>newlib-1.9.0
>
>When I build the following  C++ program I get undefined reference to
>_gxx_personality_sj0
>
>file t.hpp
>class foo
>{
>public:
>foo(void);
>~foo(void);
>void test(void);
>}
>
>file t.cpp
>#include "t.hpp"
>foo::foo(void)
>{;}
>foo::~foo(void)
>{;}
>void foo::test(void)
>{;}
>
>file tt.cpp
>#include "t.hpp"
>int main(void)
>{
>foo k;
>while(1)
>    k.test();
>}
>
>If all the files listed are place in the same source file I 
>don't get the
>undefined reference to _gxx_personality_sj0.
>Any suggestions?


        ....wait for 3.0.3 ?


  Alternatively, this looks like an exception related problem, and perhaps
specifically related to setjmp-longjmp exceptions; you might be able to
specify a different exception handling mechanism or even none at all using
the relevant flags.

  Just to double check:  you are being sure to use 'g++' and NOT 'gcc' to 
compile and link your code, are you not ?

      DaveK
-- 
Burn your ID card!  http://www.optional-identity.org.uk/
Help support the campaign, copy this into your .sig!


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list