天天看点

undefined reference to `__sync_sub_and_fetch_4'

atomic_gcc.h:103: undefined reference to `__sync_sub_and_fetch_4'

在x86上(x86_64不需要),编译参数需要加“-march=pentium4”,注意不是链接参数。

继续阅读