#"'g++' is not recognized as an internal or external command,operable program or batch file." WHAT?

28 messages · Page 1 of 1 (latest)

real topazBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

#

@stable quartz

Screenshots!

Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!

tawdry copper
#

first thing to check would be if g++'s directory is in your PATH

#

if you run this in a terminal, do you get a valid version number:

g++ --version
stable quartz
#

is this okay?

tawdry copper
#

if you're using msys2 you just have to make sure you're working with the binaries in that environment

#

it comes with a special terminal you can use that sets up the environment variables for you, which is one option

#

i think there's also a script you can call to set things up for you as well

stable quartz
tawdry copper
#

the easiest thing to try would be to specify the full path to g++ in your vscode config

tawdry copper
tawdry copper
stable quartz
tawdry copper
#

compiler path

stable quartz
tawdry copper
#

it might be worth trying out visual studio if you don't want to deal with configuring something like vscode for c++

#

it can get pretty involved if you want to set it up correctly, but visual studio will come pre-configured

stable quartz
tawdry copper
#

follow the instructions in there to set up visual studio ^

stable quartz
#

Il try

tawdry copper
#

it's a much bigger install than vscode, but will come with everything you need right out of the box

real topazBOT
#

@stable quartz Has your question been resolved? If so, type !solved :)

stable quartz
#

!solved

real topazBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity