作者共發了2篇帖子。 字體大小:較小 - 100% (默認)▼  內容轉換:不轉換▼
 
點擊 回復
15 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)
 

本帖信息

點擊數:15 回複數:1
評論數: ?
作者:巨大八爪鱼
最後回復:巨大八爪鱼
最後回復時間:2025-4-18 16:54
 
©2010-2025 Purasbar Ver2.0
除非另有聲明,本站採用創用CC姓名標示-相同方式分享 3.0 Unported許可協議進行許可。