You need a gcc, g++ compiler toolchain (on your windows machine) for the eclipse which you have manually downloaded,One of the options can be done implicit viacygwin installation(by selecting proper development packages for gcc, g++) and then add the location of the compiledgcc ,g++ package likeC:\cygwin\etc\alternatives to thePATH variable for windows environment.
After this open eclipse and go to Project->properties->C/C++ Tool Chain Editor and add replace defaultGNU C++ compiler andGNU C Compiler with Cygwin C++ compiler andCygwin C compiler and rebuild the project. The errors related togcc, g++ PATH not found will now be gone.
本文介绍如何在Windows环境下使用Eclipse与Cygwin搭建C/C++开发环境。主要步骤包括安装最新版Cygwin DLL,通过Cygwin安装gcc/g++编译器,并将编译器路径添加到系统环境变量中。最后,在Eclipse中设置C/C++编译器为Cygwin C/C++ Compiler进行项目构建。
1万+

被折叠的 条评论
为什么被折叠?



