[cfe-dev] compiling C++ with clang++
Ivan Sorokin
sorokin at rain.ifmo.ru
Tue Mar 2 13:47:35 PST 2010
Salman Pervez wrote:
> /tmp/cc-TKUPKY.o:(.gnu.linkonce.r._ZZ18__gthread_active_pvE20__gthread_active_ptr+0x0):
> undefined reference to `__gthrw_pthread_cancel(unsigned long)'
> collect2: ld returned 1 exit status
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
> Has anyone come across a similar situation?
Some time ago clang++ gets support of attribute weakref. After that it
starts to report this error.
I think support of weakrefs is incomplete or broken.
Use -D_GLIBCXX__PTHREADS to workaround the problem.
More information about the cfe-dev
mailing list