The error message no input files
means exactly that; you executed the compiler, but you didn’t tell it what to compile.
If you look at your error output, the shell_cmd
line tells you what command Sublime executed. You can see in there that it executed gcc "" -o "/" && "/"
. As we can see, there’s no filename there. In fact the places where the ""
are indicate the places where the variable that expands out to the current file name exist.
In addition, the tab with your code in it is showing the first line of the file, which is an indication that you haven’t saved the file. Build systems execute external tools, and external tools have no way to know what content you might be working on; they can only tell what you’re working on if you save the file first.
Taken all together, the very first thing you need to do after creating new content and before trying to build it is save it to disk somewhere.