How to increase error limit in Visual Studio?

前端 未结 5 1882
再見小時候
再見小時候 2020-12-06 15:58

When building an application in Visual Studio. It shows the following error when exceeding the error count

    fatal error C1003: error count exceeds 100; sto         


        
5条回答
  •  天命终不由人
    2020-12-06 16:26

    Workaround to reduce number of reported errors:

    • rename cl.exe to cl-orig.exe
    • roll your own cl.exe that launches cl-orig.exe, capturing its stdout / stderr
    • parse stderr, looking for error messages and counting them
    • breaks after first n errors

    See http://msdn.microsoft.com/en-us/library/ms682499(v=vs.85).aspx for some hints.

提交回复
热议问题