When you compile a program using mingw, an error may cause a lot of output in the command window. Because the cmd window only stores a limited lines of text, the large amount of compiling messages make the first error message lost. And the mess information is printed so quickly that you cannot even press ctrl-c to terminate it in time. In this case, you are hard to find the useful build error message. How to stop compiling the program further when the compiler encounters the first error? You can use the following option to abort the compiling process at the first error:
g++ -Wfatal-errors
With this compiler option, the building process will terminate when the first error(fatal error) is met.
Comments are closed, but trackbacks and pingbacks are open.