Fatal Error C1076
compiler limit : internal heap limit reached; use /Zm to specify a higher limit
The compiler ran out of storage for items that it stores in its heap. Usually this is the result of having too many symbols.
One of the following may be a solution:
-
Use the /Zm compiler option to set the compiler's memory allocation limit.
-
Simplify the program:
-
Eliminate unnecessary include files, especially unneeded #defines and function prototypes.
-
Eliminate some global variables. For instance, use a pointer to allocate memory dynamically, at run time, instead of declaring a large array.
-
Eliminate unused declarations.
-
Break up very large functions into smaller ones.
-
Break up very large classes into smaller ones.
-
Split the current file into two or more files and compile them separately.
Note If you get this error message immediately upon starting the build process, you have probably specified too high a value for /Zm, given the specific details of your program. Change the /Zm value to a lower one and re-run the build.