分享方式:


嚴重錯誤 C1094

'-Zm value-1 ' : 命令列選項與用來建置先行編譯標頭的值不一致 ('-Zm value-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() {}