如何设置 Eclipse 中的产品版本?
我已经创建、调试和修改了一个我一直在处理的项目,但现在我希望能够指定我正在使用的二进制文件的版本。我使用 Eclispe-CDT 和 MinGW 在我的本地系统上制作这个项目,因此不涉及版本控制软件。有谁知道如何为 Windows 和 Linux 平台指定这个?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Windows 上,其想法是生成一个包含相关信息的 COFF 文件。
这是通过使用 windres 在构建中添加一个步骤来完成的(也可在此处找到)。
请参阅此主题作为示例。
在 Unix 上,这似乎不以类似的方式支持。
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.
On Unix, this doesn't seem to be supported in a similar fashion.