According to the Doc; Compiler Error C3859
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.
Could you please tell us which version of visual studio are you using? One of the best things you can do if you're experiencing errors with PCH files is to move to a newer Visual C++ compiler. We have fixed many PCH memory pressure bugs in VS 2015 and VS 2017.
For more details, I suggest you could refer to the link: https://devblogs.microsoft.com/cppblog/precompiled-header-pch-issues-and-recommendations/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.