設置 | 登錄 | 註冊

目前共有2篇帖子。

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

內容轉換:

回覆帖子
內容:
用戶名: 您目前是匿名發表。
驗證碼:
看不清?換一張
©2010-2025 Purasbar Ver3.0 [手機版] [桌面版]
除非另有聲明,本站採用知識共享署名-相同方式共享 3.0 Unported許可協議進行許可。