clang 编译器中用于定义预处理器使用的宏的标志是什么?

What is the flag in the clang compiler to define a macro to be used by the preprocessor?

在 gcc 编译器中,我们可以提供一个宏,供 C 中的预处理器使用 -D 标志(示例 - gcc -DN=10 test.c

在 clang 编译器中可用于执行相同操作的标志是什么?

当我在 Windows 上为 clang 编译器提供相同的 -D 选项时,它给出了一个错误:

"Directory not found."

答案是上面@cremno 和@FUZxxl 的 2 条评论。

错误不是来自 clang 编译器,尽管它说是 clang 错误。相反,它来自 Windows cmd,它在“=”符号后查找目录。