src/mathfunc.h:34:18: error: call of overloaded ‘isnan(double&)’ is ambiguous

 

001、问题,gemma编译, make报错如下:

src/mathfunc.h:34:18: error: call of overloaded ‘isnan(double&)’ is ambiguous

 

002、感觉像是c++编译器版本低的问题,升级gcc编辑器

a、

yum -y install centos-release-scl
yum install devtoolset-11-gcc* -y
scl enable devtoolset-11 bash
gcc --version
g++ --version

 

003、再次编译测试,刚才的报错消失。

[root@pc1 GEMMA-0.98.5]# make
g++  -DOPENBLAS -isystem/usr/local/opt/openblas/include -DNDEBUG -O3 -DHAVE_INLINE -pthread -Wall -std=gnu++11   -Icontrib/catch-1.9.7 -Isrc  -c -o src/gemma.o src/gemma.cpp
src/gemma.cpp:79:10: fatal error: openblas_config.h: No such file or directory
   79 | #include <openblas_config.h>
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [src/gemma.o] Error 1

 。

 

posted @   小鲨鱼2018  阅读(33)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2022-12-31 linux 中wget命令的几个常用选项
2022-12-31 从NCBI中下载SRA数据
2022-12-31 linux 中对带有空格、括号的文件进行重命名
2022-12-31 linux 中删除文件名中的括号
2022-12-31 linux 中删除文件名中的空格
2022-12-31 linux中统计文本中每一行中空格的总数目
2022-12-31 linux 中实现文件名的补齐
点击右上角即可分享
微信分享提示