C++ compiler Installation 2021 [MinGW]

 C++ has been a very popular language since the modern era starts. C++ provides object-oriented support which makes it a reusable language. And to run the C++ program on your system you need to install a compiler of C++ to run your C++ Examples without any interrupts. 


So let's see how you can install a compiler on your system and your very first program on it. or on any other IDE or Text editor like VS Code, notepad, sublime editor,vin, etc.


Steps to install MinGW

  1. Download the latest version of the MinGW compiler from the following link and install MinGW.exe 
  2. link: https://sourceforge.net/projects/mingw/
  3. Now install GCC-core and GCC-g++ which are the compiling libraries, you can install any one of them.
  4. Set your PATH environment variable so that you can compiler your program directly from the command line prompt. 
  5. Go to your installation folder and copy the path example: C:\MinGW\bin folder
  6. Add system environment variable of C++ press  Windows  and search for System environment variables,    



    
7. Go to Environment Variables under the Startup and Recovery section


8. Under system variable, go down and select Path, and edit it





10. Now add the Variable name as MinGW and paste your path at Variable value..you're done.

You are done with the C++ compiler, Now to check or verify the installation you can try following

  • Oper command prompt as administrator
  • enter gcc and press enter button
  • If you followed these steps correctly you will get responses such as gcc: no input files in command prompt
  • If you gate this response, you are ready to experiment with the C++ Programming language
                             
              OR

Simply download AddoxBobx and continue to code.


إرسال تعليق (0)
أحدث أقدم