g++ could not be spawned

Hello,

I am new to Atom and started with C++,
I downloaded the package [gpp-compiler] (https://atom.io/packages/gpp-compiler)
and added MinGW to my path in Windows 7.
However when I press F5 to compile it, it gives the message:
‘‘g++ could not be spawned’’
I already looked at other threads but I could not find a solution.

Thanks in advance for your help.

What happens when you open your command prompt window and type g++?

It says “No matches found”

Mind posting a screenshot of that error message? When g++ is properly installed, this is what you will see:

g++: fatal error: no input files
compilation terminated.

This is what happens when I type in “g++”

I’m talking about the Windows command prompt. In order to diagnose what’s going on with the compiler package, we have to establish that you can run g++ properly from the system command line.

Oh, I’m sorry.
I don’t know a lot about this yet :slight_smile:

When I type g++ in the Windows command prompt, it says: ‘‘g ++ is not recognized as an internal or external assignment, program or batch file’’
My computer has the Dutch language, but that’s what it says translated.

You have not added the folder containing g++ to your PATH. Whatever MinGW folder you added, it wasn’t the right one.

Thank you very much for your help.
I indeed did not add it to the path the right way.
I watched this video tutorial to install MinGW how it should.
Hopefully this will help people with the same problem too.

Thanks DamnedScholar :slight_smile:

1 Like