make编译时,会出现linux-x86-debug/bin/libmpr.so: undefined reference to `__sync_bool_compare_and_swap_4'错误
该错误是gcc 4.1.2才会出现。
解决办法:
如果是GCC 4.1,Core Solo/Duo使用-march=prescott;Core 2 Duo/Solo则使用-march=nocona。
i686等类似设置,例如CFLAGS=”-O2 -march=i686″
本文介绍了在使用make进行编译时遇到的特定错误——linux-x86-debug/bin/libmpr.so:undefined reference to `__sync_bool_compare_and_swap_4'。此错误主要出现在gcc4.1.2版本中。文章提供了针对不同处理器架构的解决方案,如CoreSolo/Duo及Core2Duo/Solo等。
make编译时,会出现linux-x86-debug/bin/libmpr.so: undefined reference to `__sync_bool_compare_and_swap_4'错误
该错误是gcc 4.1.2才会出现。
解决办法:
如果是GCC 4.1,Core Solo/Duo使用-march=prescott;
1249
1682
6719

被折叠的 条评论
为什么被折叠?