Visual Studio is getting bigger and bigger, with too many things unrelated to the Standard C ++, sometimes just thinking about a small program, but starting a stupid and heavy IDE, it is really inconvenient. Installing vs also takes considerable time and disk space.
In addition to vs, we have many other options:Mingw,Cygwin, Dev CPP, codeblocks, and minw studio. Some of them are IDE. I choseMingw:
1. As Hou Jie said,"Use C/C ++ compiler in Console mode"
2. mingw is a famous CompilerGccSo all the experience in the compiler can be applied to the Linux platform. For me, I am used to using makefile in Linux to control the compilation process, so these experiences can be used on Windows platforms.
3. msys in minw can build a shell similar to Linux, so that almost all Linux commands can be applied in windows.
4. Unlike cygwin, the executable files compiled by minw can run on windows without relying on any library files. Cygwin depends on cygwin. dll.
Next, let's start installing minw.HereIs getting started of minw. If your e file is not very good, please refer to the following installation steps:
1. InHereDownload and run the installation file. The following components are available for installation:
A. mingw base tools: some basic binary programs of mingw, C compiler, and platform API
B .... Compiler. If you only need to compile C ++, select the G ++ compiler.
C. mingw make is the port of make in Linux. We recommend that you choose
Do not select a space Path for installation.
2. Install msys and clickHereDownload. The post install script of msys is executed in the last step of installation. Select the msys directory you have installed, so that mingw will be mounted to/mingw. We can also use the GCC compiler in msys. If you do not know, read the README after installation.
Open msys, and our programming work can be expanded here.