您的位置:首页 > 编程语言 > C语言/C++

降级GCC版本记录:error : libc_name_p

2017-04-28 10:58 5392 查看
升级降级GCC都参考文档:


CentOS 6.6 升级GCC G++ (当前最新版本为v6.1.0) (完整)

http://www.cnblogs.com/lzpong/p/5755678.html 

此次操作4.9.2到6.1.0版本,在centos6.4 可以通过.

又因版本太高回退到4.9.2

遇到

cfns.gperf:101:1: error: ‘const char* libc_name_p(const char*, unsigned int)’
redeclared inline with ‘gnu_inline’ attribute

参考
http://stackoverflow.com/questions/41204632/unable-to-build-gcc-due-to-c11-errors
具体操作:https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ec1cc0263f156f70693a62cf17b254a0029f4852

GCC版本下载地址:https://gcc.gnu.org/mirrors.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  cc++ GCC