Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1 KB

fatal-error-c1094.md

File metadata and controls

45 lines (35 loc) · 1 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Fatal Error C1094
Fatal Error C1094
08/17/2022
C1094
C1094
9e1193b2-cb95-44f9-bf6f-019e0d41dd97

Fatal Error C1094

'-Zmvalue-1' : command line option is inconsistent with value used to build precompiled header ('-Zmvalue-2')

Remarks

The value that is passed to /Yc must be the same value that is passed to /Yu (/Zm values must be the same in all compilations that use or create the same precompiled header file).

Example

The following sample generates C1094:

// C1094.h
int func1();

And then,

// C1094.cpp
// compile with: /Yc"C1094.h" /Zm200
int u;
int main() {
   int sd = 32;
}
#include "C1094.h"

And then,

// C1094b.cpp
// compile with: /Yu"C1094.h" /Zm300 /c
#include "C1094.h"   // C1094 compile with /Zm200
void Test() {}