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