Help---this is about gpp compiler


#1

I downloaded it and it didn’t work anyway.My OS is Win 10,when i press f5,it said ‘gcc’ could not be spawned.Is it installed and on your path? and i downloaded MinGW,but i don’t know how to use it.so please someone tell me something about this,i really want to use Atom,sorry that my english is not good and hope you can understand what i mean and tell me what’s wrong with it.


#2


#3

This is what hapened when i press f5


#4

You should take a look at the MinGW documentation. It has instructions on how to get started.


#5

I add C:\MinGW\bin; to my PATH .But it’s still not working


Should i write something?


#6

What happens when you open the command prompt and type gcc into it?


#7

Nothing happened,no command prompt , just said ‘gcc’ could not be spawned.Is it installed and on your path?


#8

here ,this is what happens then.


#9

Is that right?


#10

You need to open the command prompt (cmd.exe) and try typing gcc into it.


#11

What should i type?


#12

These three letters: gcc.


#13

OMG! Really thanks for your patience. It’s working now.


#14

So when I do all of this I get this error?

What exactly is going on and can I fix it?


#15

That’s what you’re supposed to get. gcc needs input files, like gcc hello_world.c in order to know what it needs to compile. Activating it alone just tells me that it’s correctly installed on your computer.


#16

Okay, I know I’m a bit late, but now it’s saying:

g++: error: basic.cpp: No such file or directory
g__: fatal error: no input files
compilation terminated.
My program is called basic.cpp, the spelling and everything is completely right. What do I do now?


#17

You provide us with more information so that we can figure out why that error message is appearing. What package are you using, what operating system are you on, and what steps are you following to try to run your code? Where on the computer is basic.cpp? It might be helpful if you posted a screenshot of that file open in Atom with that error message, right after you try to run it.