. Advertisement .
..3..
. Advertisement .
..4..
Hi everyone, I’m learning about cpp. While working, I try go in cmd.exe and write g++ -v. As a result, I get the message:
"g++" is not recognized as an internal or external command.
What can I do about the “g++ is not recognized as an internal or external command” issue? Is there a better approach?
The cause: This error happens because you didn’t mark the
mingw-gcc-g++
package in the MinGW Installation Manager.The solution: To solve this problem, you should restart the MinGW Installation Manager and mark
mingw-gcc-g++
for installation, then clickApply Changes
.You can see that the make command works perfectly. I believe you forgot to add the
mingw-gcc-g++
package to the MinGW Installation Manager.Run MinGW Installation Manager once more and mark
mingw-gcc-g++
as installation. PressApply Changes