mingw 环境变量设置


样例,具体路径以自己的安装路径为准

LIBRARY_PATH:    C:\MinGW\lib 

C_INCLUDE_PATH:     C:\MinGW\include
CPLUS_INCLUDE_PATHC:     C:\MinGW\lib\gcc;C:\MinGW\lib\gcc\mingw32;C:\MinGW\lib\gcc\mingw32\4.5.2;C:\MinGW\lib\gcc\mingw32\4.5.2\include;C:\MinGW\lib\gcc\mingw32\4.5.2\include\c++;C:\MinGW\lib\gcc\mingw32\4.5.2\include\c++\backward;C:\MinGW\lib\gcc\mingw32\4.5.2\include\c++\mingw32;


setx PATH "%PATH%;D:\mingw\bin" -m
setx LIBRARY_PATH "D:\mingw\lib" -m
setx C_INCLUDE_PATH "D:\mingw\include" -m
setx CPLUS_INCLUDE_PATHC "D:\mingw\lib\gcc\mingw32\6.3.0\include;D:\mingw\lib\gcc\mingw32\6.3.0\include\c++;"  -m

你可能感兴趣的:(windows,c,mingw)