pthread issue on OpenSUSE 10
Ian Lance Taylor
iant@google.com
Wed Mar 28 16:45:00 GMT 2007
Dima Rusyy <dima.ru.com@gmail.com> writes:
> Thanks, I really link with g++ but your recipe didn't help.
>
> I also looked at /lib/libpthread.so and _pthread_cleanup_push_defer is
> properly defined there.
> I can't get why g++ can't link it. This is just a common function that
> defined in library. No matter how I use it : in C or C++ application. I also
> tried with static libpthread_nonshared.a but the result is the same.
The error message tells me that it is a name mangling problem. Your
program is looking for the C++ mangled name. The library only
provides the C name. There is a missing extern "C" somewhere. I have
no suggestions beyond that.
Ian
More information about the Libstdc++
mailing list