Today I've been adding some library headers to our precomp.h
file. Then I tried to recompile in debug and got those two errors (spawned from a boost include):
error C3859: virtual memory range for PCH exceeded; please recompile with a command line option of '-Zm310' or greater
fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
So I fixed them by increasing the memory heap size. No problem there.
My question is more about if this problem hides another one? Will I eventually have to give it more memory if I keep on adding library headers to the precomp.h
? Is this the way programmers handle it, or would there be a "cleaner" way to do it?
More info:
- Visual Studio 2013
- c++