Problem compiling: no input files Compilation terminated

Asked

Viewed 5,699 times

3

I’m starting to program in C, but ai to use GCC ta giving me the following problem when using cmd:

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

I would like to know what to do, because all I found was just about installing and adding the directory to the PATH. Even redoing and reviewing every detail, I still can’t do anything. Maybe it’s me who doesn’t know what I’m doing xD.

  • 2

    Which command you are doing in the cmd that returns this error?

  • 1

    Pass the file to be compiled.

  • Jéferson, to using the command C: Mingw bin gcc.exe, pq everywhere I saw speaks to check using this...

1 answer

2


If this error occurred after you entered the command gcc in the cmd your installation is correct. But it is necessary to complete the syntax so that the gcc work by passing the file name to be compiled and output.

gcc seuArquivo.c -o nomeDoExecutavel

And to run call your executable:

nomeDoExecutavel

Browser other questions tagged

You are not signed in. Login or sign up in order to post.