Skip to content

Instantly share code, notes, and snippets.

@michaelHL
Last active July 5, 2017 05:27
Show Gist options
  • Save michaelHL/8b5e18b0d3d3319d49b7998bb7de052a to your computer and use it in GitHub Desktop.
Save michaelHL/8b5e18b0d3d3319d49b7998bb7de052a to your computer and use it in GitHub Desktop.
eclipse配置C/C++编译环境

eclipse配置C/C++编译环境

  1. 下载解压eclipse, 建议直接下载Eclipse IDE for C/C++ Developers, 免去插件安装

  2. 下载解压GCC编译工具链, 比如当前最新的7.1.0

  3. 根据CDT插件的FAQ, 将下载下来的GCC工具链bin目录下的gcc.exe, g++.exe 复制为mingw32-gcc.exe, migw32-g++.exe

  4. 在环境变量PATH中加入刚才的bin目录

  5. eclipse中新建工程可以看到有MinGW GCC的编译选项了, 选中根据向导继续即可.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment