Archived

This topic is now archived and is closed to further replies.

RaistlinMajere

whoa?!! fatal error?!!

Recommended Posts

Some things to check for:

-Make sure you are being careful with your #include directives
-Are you declaring any very large globals? i.e. large arrays
-Doing anything weird with templates? The only time I have ever received this error is when I was doing some template metaprogramming and the template recursion overloaded the compiler''s heap limit...

"That''s a very nice hat."
-Korben Dallas

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I was bored once and wrote out a for loop as just a bunch of individual statments. For example,

for(int i = 0; i < 5; i++) {
cout << "Hello world.\n";
}

would become

cout << "Hello world.\n";
cout << "Hello world.\n";
cout << "Hello world.\n";
cout << "Hello world.\n";
cout << "Hello world.\n";

only it was much larger than five elements. To fix, go to project|settings. Click on the c/c++ tab. At the botton, on "project options". Somewhere in that arcane list of options there is /ZmX, where X is some number. I have 1000. Just keep specifying a larger number until the program compiles.

Share this post


Link to post
Share on other sites