kriscross07 / atom-gpp-compiler

An atom package that allows you to compile and run C++ and C within the editor.
https://atom.io/packages/gpp-compiler
80 stars 230 forks source link

'g++' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process. #64

Open conorlawton opened 7 years ago

conorlawton commented 7 years ago

Win10 64bit C:\MinGW\bin image I've no idea why this is happening and it seems to be a different problem for everyone, C:>g++ --version 'g++' is not recognized as an internal or external command, operable program or batch file.

KiranAU commented 7 years ago
cinatom

Getting the same issue on my Win 10 laptop. Turbo C++ is said to be the best IDE for C but it is a pain to use on Win 10, so I wanted to try Atom for C, but getting the error message when I compile and run the program. It compiles and runs on Turbo C++ but not on Atom.

Sayan-Roy commented 7 years ago

@Krn777 , Turbo C++ is the best IDE...Are you kidding me? Try CodeBlocks . Now,coming to the issue, @1NAX2 Firstly,check if C:\MInGW\bin is in your path environment variable. Secondly,after doing this try to close and reopen the Atom as the user(i ran it as an administrator) which has all (write,read,execute) permissions to the .c file .Your .c file might be read only.Check that first.It worked for me. I might be wrong but what i did was this- i kept the c files in D drive and MinGW in C drive and then Atom compiles & runs it perfectly.Only when I kept the C files in C drive ,I had to run Atom as an administrator to compile and run my C file.

procmixin commented 6 years ago

Man. Took me so long and the only thing needed was to restart Atom. I completely forgot that I changed the Path variables after I had open Atom. :/

panjiara commented 6 years ago

Thanks! It started Working.

PavanClo commented 6 years ago

thank you bro it started to work

meaturner commented 5 years ago

How did you guys get it to start working? I am still having the same problem

mdsharifulhaque commented 5 years ago

Just restart the atom. This should be the fix.

pprathameshmore commented 5 years ago

@Sayan-Roy It worked for me. Thank you!

ujjavalsinha commented 5 years ago

Its not working ffor me

hyp3r5pace commented 5 years ago

Not working for me either....still it is not spawning

Urban158 commented 5 years ago

Same here. How do you restart Atom?

Urban158 commented 5 years ago

New Error Message: C:/Program Files (x86)/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/bin/ld.exe: final link failed: No space left on device collect2.exe: error: ld returned 1 exit status

prasaddkadam commented 5 years ago

I restarted the Atom but having the same Issue. checked on Command Prompt for "g++ --version" and it says not recognized as an internal or external command.

EDIT: Okay, it was pretty simple. Just restart your pc and the Environment variables will be implemented, Then everything will work fine. JUST RESTART THE PC (worked in my Case).

Godcreatebugs commented 4 years ago

@sarvasvX I think the fix is that you should actually set environment variable for MinGW if that is your compiler. I restarted atom and PC but it didn't work for me. So, I tried to change minGW path variable and it works flawlessly now.

Mandraulic commented 4 years ago

Hey I got an issue setting up compilers for Cpp was wondering if I could try and get some help in here, I am also a Windows user:

This might be me though having no experience working on a project in an IDE before:

g++: error: /mnt/d/Coding/Cpp/helloworld.cpp: No such file or directory g++: fatal error: no input files compilation terminated. The IDE says CCLS Language for C/C++ unable to start is this something I would download and install?

I have set up the pathing for g++ already and can verify it is recognized in my CMD prompt.

utkzas commented 4 years ago

when i press F5, nothing happens. :-(

Viraj-M commented 3 years ago

Tks worked man

Revanthrockie commented 1 year ago

Remember to restart atom after your done with changing the path location. That will fix your problem for sure.