有没有办法让 Eclipse 识别每个构建配置的虚拟定义?
我正在开发一个继承的 Borland C/C++ 项目,该项目的许多功能都隐藏在 #ifdefs 后面,这些功能依赖于传递给编译器的定义。 我一直在尝试让 Eclipse 通过使用每个配置符号来激活这些部分,但是当我查看源文件时,大部分部分仍然是灰色的。 有没有办法告诉 Eclipse 这些定义,以便我可以更改构建配置并查看哪些代码部分正在正确编译?
I am working on an inherited Borland C/C++ project and a lot of the project's functionality is hidden away behind #ifdefs which rely on defines passed to the compiler.
I have been trying to get eclipse to activate these sections by using per-configuration symbols however when i view the source files, large sections are still greyed out.
Is there any way to tell eclipse about these defines so I can change my build configuration and see which sections of code are being compiled properly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此链接是否指向此线程中描述的问题?
或者它是否与最近的错误有关,例如 bug 197989? (当标头多次包含时,快速索引器可能不准确)
Is this link to the problem described in this thread?
Or is it related to more recent bugs like bug 197989? (fast indexer may not be accurate when header included multiple times)