This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C++ "class is too large" compilation error

Hi,

I've got a huge C++ class. When I compile it, the following error message occurs:
error: class is too large
I would like to know what this does exactly mean. Code too large, data too large ?
What are the means to tackle this issue? I already tried this -> http://www.keil.com/forum/docs/thread15083.asp

Thanks a lot for your help,

Pierre

Parents
  • Data too large.. hmmmm....
    In fact my huge class did not change: I only changed some code and data from an other class which is not really "included" in the huge one because accessed through a pointer.

    class my_huge_class {
       my_other_class *ptr_to_it;
    };
    


    The data I added is located in my_other_class and as ptr_to_it is only a pointer, the global size of my_huge_class should not have changed...

    thanks for any ideas...

Reply
  • Data too large.. hmmmm....
    In fact my huge class did not change: I only changed some code and data from an other class which is not really "included" in the huge one because accessed through a pointer.

    class my_huge_class {
       my_other_class *ptr_to_it;
    };
    


    The data I added is located in my_other_class and as ptr_to_it is only a pointer, the global size of my_huge_class should not have changed...

    thanks for any ideas...

Children
No data