【问题标题】:Eclipse CDT: Where should I define a macro [duplicate]Eclipse CDT:我应该在哪里定义宏 [重复]
【发布时间】:2020-07-13 16:40:09
【问题描述】:

我应该在哪里定义预处理器宏,以便 eclipse 使用 -D marco=def 参数调用 gcc

我尝试使用 Project Properties > C/C++ General > Preprocessor Include、Path、Macros 等... 但参数没有传递给工具链。

【问题讨论】:

标签: c gcc macros eclipse-cdt preprocessor


【解决方案1】:

这个设置确实位于Project Properties中,但是在C/C++ Build中:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-09-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-09-29
    • 2014-08-14
    • 1970-01-01
    相关资源
    最近更新 更多