环境介绍: 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://stackoverflow.com/questions/19642787/netbeans-and-c-installation

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
  • 2021-08-30
  • 2021-04-02
  • 2022-12-23
  • 2021-11-25
猜你喜欢
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2021-09-04
  • 2021-11-22
  • 2022-12-23
相关资源
相似解决方案