Is it possible to instruct GNU c++ compiler to stop after 5 errors found? Can’t find this in documentation.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The command-line option
-fmax-errors=Ndirects the compiler to give up after N errors. This option is present in GCC 4.6 and later.The command-line option
-Wfatal-errorsdirects the compiler to give up after one error. This option is present in GCC 4.0 and later.In both cases, warnings do not count toward the limit unless you also specify
-Werror.