CodeLite(IDE)下载地址:https://downloads.codelite.org/
MinGW(编译器)下载地址:https://sourceforge.net/projects/mingw/files/latest/download?source=files
1.按照提示直接安装CodeLite
2.按照提示直接安装MinGW。将bin目录加入path的环境变量
详见:http://www.cnblogs.com/duanshuiliu/archive/2012/07/19/2598996.html

3.安装插件gdb,g++,gcc,mingw32-make
如:mingw-get install g++
4.新建wordkspace -> C project

5.进入CodeLite的settings菜单,选择build settings。选择Compilers选项卡选择要设置的编译器。
C++ Compiler:C:/MinGW-4.8.1/bin/mingw32-c++.exe
C Compiler:C:/MinGW-4.8.1/bin/mingw32-gcc-4.8.1.exe
Linker:C:/MinGW-4.8.1/bin/mingw32-gcc-4.8.1.exe
Make:C:/MinGW-4.8.1/bin/mingw32-make.exe
Gdb:C:/MinGW-4.8.1/bin/gdb.exe
如设置gcc编译器的相关工具路径:

网友评论