开发者

Any way to get MS VC++ to abort after having x errors

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 t开发者_如何学Pythonake 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


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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜