libstdc++.so undefined reference to gthread_cond_blaa

2 posts / 0 new
Last post
TSK
TSK's picture
Offline
Last seen: 3 weeks 8 hours 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: 57 min 38 sec 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