- First you need to download MingGW.
- Click here to download MingGW
- After downloading it,double click and run the the downloaded application
- It'll download some files after you running it, like shown in the figure below.
- The it'll open up a window where you have to do some selections. Just do like what I've done in the picture below.
- What you have to do is put a tick mark to "mingw32-base" which will basically install the C compiler.
- If you want to install C++ compiler put a tick mark to "mingw32gcc-g++" which I have done in the above picture.
- Now just click the "Installation" menu and click "Apply Changes".
- Then it'l start installing the C compiler which will take some time.
- After finishing the installation open up command prompt and then just copy and paste the given code line below.
- setx PATH "%PATH%;C:\MinGW\bin;
- Now this sets the environmental variable path for GCC compiler ( if you don't know what's the path just ignore it, now the compiler has installed correctly )
- Now everything is done!

No comments:
Post a Comment