Problem compiling: no input files compilation terminated

3

I'm starting to program in C, but then to use GCC it's giving me the following problem when I use cmd:

  

gcc.exe: fatal error: no imput files compilation terminated

I would like to know what to do, since all I found was just about installing and adding the directory to the PATH. Even redoing and reviewing every detail, I still can not do anything. Maybe it's me that does not know what I'm doing xD.

    
asked by anonymous 17.09.2015 / 19:00

1 answer

1

If this error occurred after you typed the command gcc into cmd your installation is correct. But you need to complete the syntax so that gcc works by passing the name of the file to be compiled and output.

gcc seuArquivo.c -o nomeDoExecutavel

And to execute call your executable:

nomeDoExecutavel
    
17.09.2015 / 19:22