3. C++ Compilers
The g++ frontend (as part of the GCC)
Visual C++ (as part of the Visual Studio IDE)
Clang (as part of the LLVM)
3.1 Installing C++ Compilers
The following sections explain how to install C++ compilers on Linux and Windows and how to compile and run our C++ programs.
3.1.1 On Linux
The same rules apply to the Clang compiler. Substitute g++ with clang++.
3.1.2 On Windows
On Windows , we can install a free copy of Visual Studio.
Choose Create a new project, make sure the C++ language option is selected, and choose - Empty Project – click Next and click Create. Go to the Solution Explorer panel, right-click on the project name, choose Add – New Item – C++ File (.cpp), type the name of a file (source.cpp), and click Add. Press F5 to run the program.
We can also do the following: choose Create a new project, make sure the C++ language option is selected, and choose – Console App – click Next and click Create.
If a Create a new project button is not visible, choose File – New – Project and repeat the remaining steps.