This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Create My_Executable_VERSION_NUMBER.bin



I have a #define in my code that keeps track of version number. I would like the compiler to output the .bin file with that version number appended to the name. Is there a way to achieve that?

  • The compiler has no mechanism by which it can change the base name of a file.  Only file extensions are changed, such as file.c to file.obj.  

    Perhaps if you passed that version number in as a --define value, then you probably use commands in a make file to create that file name.

    Thanks and regards,

    -George