views:

160

answers:

2

When building an app. VS will complain of exceeded error count:

fatal error C1003: error count exceeds 100; stopping compilation

Is there a way to increase the limit?

Thanks in advance,
- Oleksii Skidan

+4  A: 

I don't think so. VS basically reports all errors it encounters during compilations. There might be some erroneous parts of the code that make the compiler getting caught in an infinite "error" loop.

The limit was implemented to avoid that. In most cases the 100 errors you get are just the same error reported over and over again. What would be the sense in increasing the number of repetitions?

Maybe you can post the code snippet where the error occurs first, so we can help you fix it.

A: 

I believe that it is a hard-coded limit, so no.

As others have commented, it's difficult to understand what you want to achieve by this.

At the end of the day, you'll have to fix them all, so get stuck in and start fixing them. Eventually, you'll get below 100, and you can start counting them.

It is not normally valuable to report the actual number of errors when this occurs. Most of the time, when you get C1003, it's actually only a few real errors, leading to a massive chain of other errors.

(e.g.)

  • If there is an error in a .h file, that error will be reported in every .cpp file that #includes it.
  • If there is an error that prevents any kind of identifier being defined (e.g. a class, variable, method name), then every time you try to use it later on, an error will be reported.
Paul Butcher