The following compilation error occurs when you compile a project today:
1> D: \ Program Files (x86) \ Microsoft Visual Studio 9.0 \ Vc \ include \ vector (203): Error c3859: Virtual Memory range for PCH exceeded; please recompile with a command line option of '-zm110' or greater
1> D: \ Program Files (x86) \ Microsoft Visual Studio 9.0 \ Vc \ include \ vector (203): Fatal error c1076: Compiler limit: Internal heap limit reached; use/ZM to specify a higher limit
Literally:
Error c3859: the PCH virtual memory range is out of range. Use the command line option '-zm110' or a larger re-compilation.
Fatal error c1076: Compilation restricted: Internal stack reached the upper limit; Use/ZM to specify a higher limit.
For the above errors, I personally understand that PCH (precompiled headers, pre-compiled header file stdafx. h) contains too many files, resulting in insufficient pre-compiled memory.
The solution is very simple. Right-click the project and choose Properties> C/C ++> command line. In the additional options (additional options) press the error prompt and enter-zm110 (or a larger number) to re-compile.