Error c3859: exceeds the PCH virtual memory range. Use "-zm33" or a larger command line option to re-compile.

Source: Internet
Author: User

Cause:
The precompiled header used to accelerate boost compilation. In addition, many boost header files are added, resulting in the PCH file exceeding the default value.
Solution:
1. Find the project> Properties> C/C ++> command line> other options.
2. Input/zm100, with a larger number
Definition:
/ZM (specify the memory allocation limit of the pre-compilation header): determines the amount of memory allocated by the compiler to construct the pre-compilation header. Format:/zmfactor.
Factor: a proportional factor that determines the amount of memory that the compiler uses to construct the pre-compiled header.
The factor parameter is the default percentage of the buffer size defined by the compiler. The default value of the factor parameter is 100 (%), but you can specify a larger or smaller number. In earlier versions of Visual C ++, the compiler used several independent heaps, each of which had certain limitations. Currently, the compiler can dynamically increase the heap size as needed. A maximum of heap size restrictions can be added, and a pre-compilation header can be constructed only by a fixed buffer. Therefore, the/ZM compiler option is rarely required.
If the compiler runs out of heap space and sends a c1060 error message when you use the/ZM compiler option, you may reserve too much memory. Consider removing the/ZM option. If the compiler sends a c1076 error message, the accompanying c3859 message specifies that you re-compile with the/ZM compiler optionProgramThe factor parameter.


Memory Allocation limit of factor values
10 7.5 MB
100 75 MB
200 150 MB
1000 750 MB
2000 1500 MB

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.