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

Asked

Viewed 244 times

2

I am using the Sublime Text to write the codes and leave them on the desktop

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

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

  • You can change the name each a.exe. For example: a-201603051134.exe or teste-007.exe, ...

  • I don’t understand @pmg

  • I saw that you found gcc’s solution. What I was saying was to rename the executable: select, press F2 and give it a different name. In the next compilation, the compiler generates a a.exe different.

1 answer

1

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

Browser other questions tagged

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