Generate executables with names other than "a.exe" by Sublime Text

1

I am using Sublime Text to write the codes and leave them in the workspace

Every time I save a .c file, it generates an executable for Windows. When I save more than one .c code on the desktop and compile, it takes the place of the other code that was previously compiled, always the same as 'a' .

How could I generate a 'a' or executable for each c code.

    
asked by anonymous 05.03.2016 / 04:48

1 answer

1

The problem is that I was compiling using gcc filename.c without the -o that specifies the output of the file.

    
05.03.2016 / 14:00