1

I've created, debugged, and revised a project that I've been working on, but now I want to be able to specify what version of the binary I'm on. I'm using Eclispe-CDT with MinGW to make this project on my local system, so there is no versioning software involved. Does anyone know how to specify this for both Windows and Linux platforms?

Caleb Waggoner
  • 147
  • 1
  • 2
  • 13

1 Answers1

0

On Windows, the idea is to produce a COFF file with the relevant information.

That is done by adding a step to the build, using windres (found also here).
See this thread as an example.

you could add windres via the project properties/Builders as an additional builder and add the generated object file in the C/C++ Build/GCC C++ Linker/Miscellaneous/Other Objects.

Then you - a) could do a clean build if the resource is changed or - b) could change the build options (if you have patience) to change to do a clean build every time you save the project.

On Unix, this doesn't seem to be supported in a similar fashion.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250