I am getting this error of, "Heap limit reached use /Zm to specify a higher limit", even when building an empty or hello world program in VC6. Can any one take me out of this trouble?
-
1Buying more RAM might help ;)– ConstantiniusCommented Jan 4, 2012 at 16:51
-
7Asked 14 years too late. Which probably has something to do with the trouble. Trying running it in a virtual machine that boots something old like Windows 2000 or XP.– Hans PassantCommented Jan 4, 2012 at 16:51
-
@HansPassant: lolll XP isn't that old... it's the only [usable] version before Windows 7. :P– user541686Commented Jan 4, 2012 at 16:54
-
@shoayb: Try using the Windows 2003 DDK instead. It's newer but still similar to VC6.– user541686Commented Jan 4, 2012 at 16:57
-
1Your question as it stands isn't answerable. Your compiler obviously isn't installed right, is corrupt, isn't compatible with your system, etc. But you've provided no details! Like, which OS are you running? On a real machine, or VM? How much RAM? Etc. Basic PC troubleshooting info.– derobertCommented Jan 4, 2012 at 16:58
|
Show 4 more comments
1 Answer
Disable precompiled headers. Go to project/properties to change it.
Or you can specify a higher heap for it using the /Zm command:
http://msdn.microsoft.com/en-us/library/bdscwf1c%28v=vs.80%29.aspx
(the documentation is for vs8.0, but should work for vc too).