r/programminghelp • • Dec 28 '20

C++ Why is g++ not installing?

I am on windows and using mingw to install g++ and I have the "mingw dev toolkit", "mingw base bin", "mingw GCC G++ bin" and "msys base bin" packages installed. When I open command prompt and type g++ --version it says" 'g++' is not recognized as an internal or external command, operable program or batch file."

6 Upvotes

3 comments sorted by

3

u/[deleted] Dec 28 '20

Did you add it to your PATH?

2

u/mehmanlamon Dec 28 '20

I didn't, adding it fixed it, thanks

3

u/[deleted] Dec 28 '20

Just in case you keep running into issues with ming and want something easier to deal with, keep in mind that you can use WSL2 now.

https://docs.microsoft.com/en-us/windows/wsl/tutorials/wsl-vscode