001、make 编译 报错:train_logReg_param.o:train_logReg_param.cc:(.text+0x3407): more undefined references to `std::__throw_out_of_range_fmt(char const*, ...)' follow
002、解决方法(可能是gcc 版本的问题)
a、gcc当前版本:
(py38) [root@pc1 Augustus-3.5.0]# gcc --version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
b、升级gcc版本至11,升级后版本: gcc升级过程:https://www.cnblogs.com/liujiaxin2018/p/17808659.html
(base) [root@pc1 Augustus-3.5.0]# gcc --version gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
003、编译测试
(base) [root@pc1 Augustus-3.5.0]# make ## 再次编译测试,果然之前的报错消失,证明了前边的报错就是gcc版本的问题造成的。
。
参考:
01、https://github.com/tgac/kat/issues/68
标签:gcc,logReg,train,报错,param,版本 From: https://www.cnblogs.com/liujiaxin2018/p/17826159.html