Settings | Sign in | Sign up

There are currently 2 posts.

configure:4076: error: C++ preprocessor "/lib/cpp" fails sanity check

Floor 1 巨大八爪鱼 4/18/25 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文件。

Floor 2 巨大八爪鱼 4/18/25 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

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
©2010-2025 Purasbar Ver3.0 [Mobile] [Desktop]
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported license.