龙芯loongarch64服务器编译c文件报错#error Target architecture was not detected as supported by Double-Conversion

问题

       龙芯loongarch64服务器编译c文件报错#error Target architecture was not detected as supported by Double-Conversion

龙芯loongarch64服务器编译c文件报错#error Target architecture was not detected as supported by Double-Conversion_第1张图片

解决办法:

        需要修改utils.h文件

1、打开utils.h文件:

vim double_conversion/double-conversion/utils.h

2、在添加宏 defined(__loongarch__)

龙芯loongarch64服务器编译c文件报错#error Target architecture was not detected as supported by Double-Conversion_第2张图片

3、重新编译。

完毕!!!

你可能感兴趣的:(龙芯loongarch64,c语言)