GCC : Using 'try'-'catch'-'throw' with HC12 port - unresolved link errors

Ken Foskey foskey@optushome.com.au
Tue Feb 24 12:33:00 GMT 2004


On Tue, 2004-02-24 at 11:18, Daniel Quinz wrote:

> main.o: undefined reference to `__gxx_personality_sj0'
> main.o: undefined reference to `typeinfo for int'
> main.o: undefined reference to `__cxa_allocate_exception'
> main.o: undefined reference to `__cxa_throw'
> main.o: undefined reference to `__cxa_begin_catch'
> main.o: undefined reference to `__cxa_end_catch'

easy solution,  link with g++ not gcc.  Longer solution there is an
additional library you need when you link c++ with gcc, cannot remember
offhand.

-- 
Thanks
KenF
OpenOffice.org developer



More information about the Gcc-help mailing list