Skip to content

MinGW added to path but won't spawn (Windows) #11

Description

@lauritzen604

I've added MinGW to the path in Windows 10 as C:\MinGW\bin
To check the install, I used the terminal:
C:\Users\mike>g++ --version
g++ (MinGW.org GCC-8.2.0-5) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

C:\Users\mike>

In Atom, after adding the gpp-compiler package and trying to 'compile and run', I get the error:
'g++' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.

Weird thing is, if I go to the project folder and enter the following, the file compiles properly and produces an executable.
**C:\Users\mike\Documents\atom\CPP>g++ main.cpp

C:\Users\mike\Documents\atom\CPP>a.exe
Hello world

C:\Users\mike\Documents\atom\CPP>**

Any fixes?
Thanks,
Mike

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions