« Return to Thread: pthread issue on OpenSUSE 10

Re: pthread issue on OpenSUSE 10

by Ian Lance Taylor-3 :: Rate this Message:

Reply to Author | View in Thread

Dima Rusyy <dima.ru.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

 « Return to Thread: pthread issue on OpenSUSE 10