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
Most probably it's the data that is too large - the sum of all member fields (visible and hidden) in the class. In short, the result of sizeof(class_object) is too large.
I wouldn't worry too much about that link. He probably has a bug somewhere either overwriting memory, or skipping some initialization.
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...