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 228 forks source link

c++ ; g++.exe: error: program.cpp: No such file or directory g++.exe: fatal error: no input files #338

Open Father613 opened 4 years ago

Father613 commented 4 years ago

Hey,

I'm learning c++ in visual studio code. I have g++ (and g--, i dont know if theyre the same thing or not but they are up to date) downloaded on my computer and i have no clue why i am getting these error messages;

g++.exe: error: program.cpp: No such file or directory g++.exe: fatal error: no input files

%g++ : The term '%g++' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again. At line:1 char:1

zFireBlaze commented 3 years ago

Sei riuscito a risolvere? se si come potresti dirmelo?

Jeremy5909 commented 3 years ago

I have the same problem, any fix?

IkireziDivine01 commented 3 years ago

I have met the same error and solved it by running my program with this command g++ .\routell.cpp -o route then ./route

HemanthSai7 commented 3 years ago

don't leave any space in the name of the file. Save it as a one single word. Then it should be nice

PriyeshKant commented 3 years ago

don't leave any space in the name of the file. Save it as a one single word. Then it should be nice

Yes this works thanks

its-surajtripathi commented 3 years ago

don't leave any space in the name of the file. Save it as a one single word. Then it should be nice

Thanks bro it works.

Shallusran commented 3 years ago

don't leave any space in the name of the file. Save it as a one single word. Then it should be nice

this works but shows output in terminal only when I switch to output it's blank . How can I get hello printed in output as well as in terminal.

HemanthSai7 commented 3 years ago

I dont know much about the OUTPUT window, but in the long run it is the terminal which you will use the most. OUTPUT cannot take in user inputs and many other things. I seriously never cared about the OUTPUT window😂.

Shallusran commented 3 years ago

okay thanks since i am beginner i was not aware about that. Thanks for the information.

On Sat, Jul 10, 2021 at 10:59 AM HemanthSai7 @.***> wrote:

I dont know much about the OUTPUT window, but in the long run it is the terminal which you will use the most. OUTPUT cannot take in user inputs and many other things. I seriously never cared about the OUTPUT window😂.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriscross07/atom-gpp-compiler/issues/338#issuecomment-877571045, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUZJB52R76UK7D7K7XZY67TTW7LELANCNFSM4O5FGKYQ .