更新时间:2023-02-23 08:01:03
转到项目 - > 属性 - > C / C ++ - > 命令行。您最可能在您的 / DWIN32
之前有 / I
。由于某种原因,一个空的include指令导致/ D蒸发,因此你的错误。
Go to Project-->Properties-->C/C++-->Command line. You most probably have a /I""
before your /D "WIN32"
. For some reason an empty include directive causes the /D to evaporate hence your error.
转到项目 - > 属性 - > C / C ++ - > 一般 - > 其他包含目录,并确保没有冗余的字符。
Go to Project-->Properties-->C/C++-->General-->Additional include directories and make sure there are no redundant chars there.
例如,当最后一个include目录是对不存在的环境变量的引用时。
It can for example arise when the last include directory is a reference to an environement variable that doesn't exist.