Click to See Complete Forum and Search --> : c1055 : Compiler Limit : Out Of keys


gauravsinghal
March 19th, 2003, 04:08 PM
I am facing this error while compiling my Project....
Please let me know the possible solution for the same

TIA
Gaurav

Mick
March 19th, 2003, 04:16 PM
I don't know what compiler your using but I'll take a stab with this:

Fatal Error C1055
compiler limit : out of keys

The file being compiled contained too many symbols. The compiler sets up a symbol table and uses hash keys to look up symbols in the table. This error indicates that the compiler has reached its limit for these keys.

Tips

Try to split the file into smaller files, and recompile.


Only include header files that are absolutely necessary.


Where possible, reuse temporary and global variables so that fewer symbols are generated, and thus, fewer keys are needed.

gauravsinghal
March 19th, 2003, 04:23 PM
Thanks for ur reply...
But I was able to find this details in MSDN.....The problem with my prooject is that there are lot many files and when I am compiling after compiling a few of those the Compiler shoots this error...

Number of variables used in the Whole project must be a lot..
But I dont think for one file they are lot.....

while compiling does it take in view the variables of the current file or of the whole project....

and including 5-6 header files in .h i donot think is too much...

I am just not getting a clue what to do .....

Mick
March 19th, 2003, 04:39 PM
Well you got me there. I'm pretty anal about breaking large projects into smaller sub-DLL projects. So I tend to stay away from encountering things of this nature. But, I would suggest breaking up the file where the error occurs as it states in the 'workarounds' (btw it is on MSDN (c1055 but I got there thru google) and I orignally looked it up in the MSDN help local on my system C1055. But anywho.

Are you sure the headers you are including are not including other headers who are including other headers who are including other headers who are....