[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: egcs package + need help

Philip Blundell <philb@gnu.org> writes:

> >/usr/lib/gcc-lib/arm-linux/egcs-2.91.60/libstdc++.so: undefined reference to `
> >_pthread_cleanup_pop_restore'
> >/usr/lib/gcc-lib/arm-linux/egcs-2.91.60/libstdc++.so: undefined reference to `
> >_pthread_cleanup_push_defer'
> I have a little information on this now.  These should be weak externals in 
> libstdc++.so but for some reason they're coming out as non-weak and causing 
> errors.  Don't know why yet.

Ok.  Makes sense, I guess.
> Does it work if you link with -lpthread, by the way?

$ g++ helloworld.c -lpthread
/usr/lib/gcc-lib/arm-linux/egcs-2.91.60/libstdc++.so: undefined reference to `exception virtual table'
collect2: ld returned 1 exit status

A bit of an improvement, I guess.


 - Jim

Reply to: