Notepad++配置MinGW

rem "C:/Program Files/Notepad++/RunCmd.bat" "$(CURRENT_DIRECTORY)"
@echo off
set PATH=E:/Program Files/CodeBlocks/MinGW/bin;%PATH%
set PATH=E:/Program Files/CodeBlocks/MinGW/libexec/gcc/mingw32/3.4.5;%PATH%
set LIBRARY_PATH=E:/Program Files/CodeBlocks/MinGW/lib
set C_INCLUDE_PATH=E:/Program Files/CodeBlocks/MinGW/include
set CPLUS_INCLUDE_PATH=E:/Program Files/CodeBlocks/MinGW/include/c++/3.4.5
set CPLUS_INCLUDE_PATH=E:/Program Files/CodeBlocks/MinGW/include/c++/3.4.5/mingw32;%CPLUS_INCLUDE_PATH%
set CPLUS_INCLUDE_PATH=E:/Program Files/CodeBlocks/MinGW/include/c++/3.4.5/backward;%CPLUS_INCLUDE_PATH%
set CPLUS_INCLUDE_PATH=E:/Program Files/CodeBlocks/MinGW/include;%CPLUS_INCLUDE_PATH%

set cur_path=%1%
set root_path=%cur_path:~1,1%
%root_path%:
cd %1
cmd /k

使用方法:
gcc lab1.c –o lab
g++ lab2.c –o lab
C++编译使用 g++

你可能感兴趣的:(c,gcc,cmd,Path,include,library)