Build in windows gcc, g++ environment

One: Download and install the C/C++ compiler

There are many integrated compilers under windows, we just need to use gcc.exe  to compile, so we can download it casually, here is recommended to use: MinGW : (attached download official website address, can be installed directly)

https://link.csdn.net/?target=https%3A%2F%2Fmirrors.gigenet.com%2FOSDN%2F%2Fmingw%2F68260%2Fmingw-get-setup.exe icon-default.png?t=N176https://link.csdn.net/ ?target=https%3A%2F%2Fmirrors.gigenet.com%2FOSDN%2F%2Fmingw%2F68260%2Fmingw-get-setup.exe has been continuing, two key steps:

In the menu bar selectInstallation -> Apply Changes 

 After the installation is complete, you need to set environment variables so that cmd can find gcc.exe

Add C:\MinGW\bin to the path

 

 

Guess you like

Origin blog.csdn.net/weixin_41012767/article/details/129365597