【发布时间】:2021-06-22 15:34:09
【问题描述】:
我从 Clang 10 收到以下错误消息:
error: expected value in expression
#if FOOBAR
^
1 error generated.
没有更多信息。这可能是什么原因?
【问题讨论】:
-
也许你想要
#ifdef?#if期待一个表达式。 -
FOOBAR是如何定义的? (或者它被定义了吗?)你能提供一个minimal reproducible example吗? -
请提供正确的minimal reproducible example。
-
I got the error 在行前添加
#define FOOBAR。 -
该错误不在我的代码中,因此我无法生成可重现的示例,因为我不明白。
标签: c clang c-preprocessor