2

I am compiling dll's that take a long time, i was wondering if you could automatically make MSVC++ abort the compile after a certain number of errors.

For example an error in one header causes 100's of errors in the program but it can take a few minutes for the compilation to stop.

I know I can cancel it manually, but was wondering if I could get the compiler to go, you have had 20 errors, the compile is not going to work I give up?

Cheers

skaffman
  • 398,947
  • 96
  • 818
  • 769
user219381
  • 23
  • 2

1 Answers1

0

There's a similar answer here for certain number == 1: How to automatically stop Visual C++ build at first compile error. Perhaps you could modify Eric Muyser's macro by changing this line:

If found > 0 Then

to something like this:

If found >= 20 Then
Community
  • 1
  • 1
richj
  • 7,499
  • 3
  • 32
  • 50