错误 C1094
“-Zmvalue-1”:命令行选项与用于生成预编译标头(“-Zmvalue-2”)的值不一致
备注
传递给 /Yc
的值必须与传递给 /Yu
的值相同(在使用或创建相同预编译标头文件的所有编译中,/Zm
值必须相同)。
示例
以下示例生成 C1094:
// C1094.h
int func1();
然后,
// C1094.cpp
// compile with: /Yc"C1094.h" /Zm200
int u;
int main() {
int sd = 32;
}
#include "C1094.h"
然后,
// C1094b.cpp
// compile with: /Yu"C1094.h" /Zm300 /c
#include "C1094.h" // C1094 compile with /Zm200
void Test() {}