Sign in to follow this  

help!!

This topic is 4865 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

c:\program files\microsoft visual studio\vc98\include\istream(508) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit ^ That showed up....so can you help me?

Share this post


Link to post
Share on other sites
I would imagine you are recursivly including two header file from each other, ie:


//filea.h
#include <iostream>
#include "fileb.h"

//fileb.h
#include "filea.h"



You can solve this by using include guards so each file can only get included once per source file, like this:

//filea.h
#ifndef _FILEA_H_
#define _FILEA_H_
#include <iostream>
#include "fileb.h"
#endif

//fileb.h
#ifndef _FILEB_H_
#define _FILEB_H_
#include "filea.h"
#endif



Alan

Share this post


Link to post
Share on other sites
Out of the solutions on one i am going to try, and that is /zm but i don't know how to get to the property page, and the microsoft thing doesn't exactly help.

Share this post


Link to post
Share on other sites
Quote:
Original post by anorenn
Out of the solutions on one i am going to try, and that is /zm but i don't know how to get to the property page, and the microsoft thing doesn't exactly help.


Goto project->settings and you should find it there. Though usually in my experience it's a problem much like Alan Kemp described.

~Wave

Share this post


Link to post
Share on other sites
yea..i tried the, define and endif stuff...didn't work
I used the includes because of this problem...it happened before without any includes except time.h and iostream. I think it's my computer...my computer really sucks.

Share this post


Link to post
Share on other sites

This topic is 4865 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this