Hello,

what can I do against this error (using vc7.1)? I get it in my debug
build. The release build compiles fine. The error appears in assert calls.

This is really annoying. How many symbols are allowed?

Can this be changed with some compiler option?

Ok, i guess I have lots of symbols caused be some heavy template use but
the suggested solutions in the help are not possible for me without
some major refactoring.

Any other possible solutions?

Suffer other compilers (intel c++, gcc?) from this problem too?

best regards,

Vasco Lohrenscheit

__LINE__ compiler bug (was Re: fatal error C1055 compiler limit : by Vasco

Vasco
Wed May 12 11:35:00 CDT 2004

Vasco Lohrenscheit wrote:

> Ok, i guess I have lots of symbols caused be some heavy template use but
> the suggested solutions in the help are not possible for me without
> some major refactoring.

I've tried several things, and this seem to be one of the numerous
compiler bugs in vc7.1.
The error happened only with asserts or other lines where the __LINE__
macro is used.

With the following work around also the debug build get compiled without
errors:

#include <cassert>
#ifdef _DEBUG
#undef assert
#define assert(exp) (void)( (exp) || (_assert(#exp, __FILE__, -1), 0) )
#endif
/*instead of original macro:
#define assert(exp) (void)( (exp) || (_assert(#exp, __FILE__,__LINE__), 0) )
*/


best regards,

Vasco Lohrenscheit

Re: __LINE__ compiler bug (was Re: fatal error C1055 compiler limit : out of keys) by Hendrik

Hendrik
Mon May 17 04:55:27 CDT 2004

Vasco Lohrenscheit <valohNOSPAM@web.de> wrote:
> [...]

This rang a bell:
http://www.google.com/groups?selm=%23O9xGza6DHA.2300%40TK2MSFTNGP10.phx.gbl

> best regards,
>
> Vasco Lohrenscheit


Schobi

--
SpamTrap@gmx.de is never read
I'm Schobi at suespammers dot org

"Sometimes compilers are so much more reasonable than people."
Scott Meyers