Hello, friends in this blog I have shown that How to Solve " g++ is not recognized " problem/error on Visual Studio Code, this problem will occurs when we run any c or c++ code on vs code, This error shows due to many different reasons.
) Why this error ?
1. Unsuccessful installation of minGW.
2. Wrong Environment Variable Location.
3. System not compatibility.
(Windows 7 with .NET Framework 4.5.2, 8.0, 8.1 and 10, 11 (32-bit and 64-bit))
) How to Solve ?
I have shown you very simple way to fix this problem and at end of this blog you can run your c / c++ code successfully on your vs code so lets follow my steps
I hope you installed vs code successfully on your PC check this to find how to install vs code.
STEP 1 :
Download the zip file from this link
STEP 2 :
Right click on mouse to find the 7zip option for extract the zip file or you can use other apps for this process.
Now copy the Folder to the Local Disk C drive, right click on mouse to find the option
If MinGW folder already present, just replace with new one or delete the old MinGW folder then paste the new extracted folder on that location. check this screenshot here.
Now open the MinGW Folder then just go and copy this location C:\MinGW\bin
NOW GO TO
computer properties > Advance System Settings > Environment Variables > then edit the path > paste that location the path just follow the below screenshots for the process
SUCCESS
Post a Comment
Post a Comment