This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthread issue on OpenSUSE 10


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]