2

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?

9
  • 1
    Buying more RAM might help ;) Commented Jan 4, 2012 at 16:51
  • 7
    Asked 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. Commented Jan 4, 2012 at 16:51
  • @HansPassant: lolll XP isn't that old... it's the only [usable] version before Windows 7. :P
    – user541686
    Commented Jan 4, 2012 at 16:54
  • @shoayb: Try using the Windows 2003 DDK instead. It's newer but still similar to VC6.
    – user541686
    Commented Jan 4, 2012 at 16:57
  • 1
    Your 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.
    – derobert
    Commented Jan 4, 2012 at 16:58

1 Answer 1

1

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).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.