Sign in to follow this  
Sir Sapo

Odd Rebuild Problem

Recommended Posts

Hey everyone, I ran into a problem today that I haven't ever seen before, and I was wondering if anyone knows what could be causing it. In my project, every class includes this header file that has all my constants defined in it. This worked fine until I added one more constant to the header file, and now my program crashes. Is there some limit to the number of variables that can be defined in a header file, or is something else going on? Thanks in advance.

Share this post


Link to post
Share on other sites
No there is no limitted number of variables that you can declare to header, at least as far as I know. :) Try making it with extern. For example like :

extern MyClass *object;

Share this post


Link to post
Share on other sites

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