Error c3859: Virtual Memory range for PCH exceeded. Cause and Solution

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.