Cygwin环境编译/usr/include/sys/_types.h:72:20: 致命错误:stddef.h:can not found

环境介绍: win7_x64 +Cygwin64

gcc :4.8.2

g++:4.8.1

编译 c++的helloworld.cpp 一直失败!

代码如下:

#include <iostream>
#include <cstddef>
using namespace std;

int main() {
cout << "Hello World!";
return 0;
}

解决办法:gcc降级 到 gcc4.8.1-3

  降级方法参考: http://www.crifan.com/win7_x64_cygwin_downgrade_gcc_from_4_7_3_to_4_5_3/

  参考资料:http://*.com/questions/19642787/netbeans-and-c-installation

上一篇:#import </usr/include/objc/objc-class.h> not such file or directory问题的解决方法


下一篇:poj1673EXOCENTER OF A TRIANGLE