fail to compile "hello,world" toy

Fei, Xiu Dong (Xiudong) feixd@lucent.com
Sun Mar 3 21:18:00 GMT 2002


Hi,

Recently my administrator updated g++ from 2.95.2 to 3.0.4 on hpux11. When I
try to compile the toy "hello, world" using "g++ hello.cc", g++ complains as
follows:

/usr/ccs/bin/ld: Unsatisfied symbols:
     __gxx_personality_sj0 (first referenced in /var/tmp/ccLgd8Cq.o) (code)
collect2: ld returned 1 exit status

When I try to use "g++ hello.cc -lsupc++", g++ works well. However, it costs
me lots of time to generate a.out. Is there any tricks on hpux11? Or
anything wrong with installment?

Thanks,
Xiudong



More information about the Gcc mailing list