description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Error C3859 |
Compiler Error C3859 |
02/22/2022 |
|
|
40e93b25-4393-4467-90de-035434a665c7 |
virtual memory range for PCH exceeded; please recompile with a command line option of '-Zmvalue' or greater
The virtual memory allocated for your precompiled header is too small for the amount of data the compiler is trying to put in it. Starting in Visual Studio 2015, the /Zm
recommendation is only significant when using the #pragma hdrstop
directive. In other cases, it's a spurious error that indicates Windows virtual memory pressure issues.
If your precompiled header uses a #pragma hdrstop
directive, use the /Zm
compiler flag to specify a larger value for the precompiled header file. Otherwise, consider reducing the number of parallel compilation processes in your build. For more information, see /Zm
(Specify precompiled header memory allocation limit).