First, in the properties bar of my Computer, find the advanced system settings:
About the configuration of the MINGW environment variable
After the "System Properties" column appears, the lower-right corner has "environment variables", and then the environment variable settings are entered:
About the configuration of the MINGW environment variable
If shown in the user variable, add separately:
Variable: C_includede_path value: C:\win\MinGW\include
Variable: Cplus_include_path value: c:\win\mingw\include\c++\3.4.5; c:\win\mingw\include\c++\3.4.5; C:\win\mingw\include\c++\3.4.5\backward; C:\win\MinGW\include
Variable: Library_path value: C:\win\MinGW\lib
Variable: PATH value: C:\win\MinGW\bin
After the configuration is complete, the check is successful:
Enter cmd, and then enter: Gcc-v, the displayed version information appears:
About the configuration of the MINGW environment variable
Description has been configured successfully.
About the configuration of the MINGW environment variable