作者共发了2篇帖子。 字体大小:较小 - 100% (默认)▼  内容转换:不转换▼
 
点击 回复
73 1
configure:4076: error: C++ preprocessor "/lib/cpp" fails sanity check
一派掌门 二十级
1楼 发表于:2025-4-18 16:52
configure:4076: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details

 

一检查发现,是因为g++编译器用不了,连简单的#include <iostream>的hello world都不行。提示找不到stddef.h文件。

一派掌门 二十级
2楼 发表于:2025-4-18 16:54

重新运行cygwin安装程序,把gcc和g++都升级成5.4.0版本,g++就能用了。

 

checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E

 

回复帖子

内容:
用户名: 您目前是匿名发表
验证码:
(快捷键:Ctrl+Enter)
 

本帖信息

点击数:73 回复数:1
评论数: ?
作者:巨大八爪鱼
最后回复:巨大八爪鱼
最后回复时间:2025-4-18 16:54
 
©2010-2025 Purasbar Ver2.0
除非另有声明,本站采用知识共享署名-相同方式共享 3.0 Unported许可协议进行许可。