Edit

Share via


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() {}