libstdc++.so undefined reference to gthread_cond_blaa

2 posts / 0 new
Last post
TSK
TSK's picture
Offline
Last seen: 1 year 2 months ago
Joined: 2011-06-28 02:06
libstdc++.so undefined reference to gthread_cond_blaa

How do I get rid of this error ?

"/GCC/lib/gcc/ppc-amigaos/11.2.0/newlib/lib/libstdc++.so: undefined reference to `__gthread_cond_broadcast'
/GCC/lib/gcc/ppc-amigaos/11.2.0/newlib/lib/libstdc++.so: undefined reference to `__gthread_cond_destroy'
/GCC/lib/gcc/ppc-amigaos/11.2.0/newlib/lib/libstdc++.so: undefined reference to `__gthread_cond_init'
/GCC/lib/gcc/ppc-amigaos/11.2.0/newlib/lib/libstdc++.so: undefined reference to `__gthread_cond_wait'
/GCC/lib/gcc/ppc-amigaos/11.2.0/newlib/lib/libstdc++.so: undefined reference to `__gthread_cond_signal'"

I'm trying to compile (g++) a cpp program using cpp shared object .so lib.

salass00
salass00's picture
Offline
Last seen: 7 months 2 weeks ago
Joined: 2011-02-03 11:27
Re: libstdc++.so undefined reference to gthread_cond_blaa

Just add option -athread=single or -athread=native (the latter is needed if the code uses C++ threads) when linking.

Log in or register to post comments