stop compiling after error

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.

Did you like this?
Tip admin with Cryptocurrency

Donate Bitcoin to admin

Scan to Donate Bitcoin to admin
Scan the QR code or copy the address below into your wallet to send some bitcoin:

Donate Bitcoin Cash to admin

Scan to Donate Bitcoin Cash to admin
Scan the QR code or copy the address below into your wallet to send bitcoin:

Donate Ethereum to admin

Scan to Donate Ethereum to admin
Scan the QR code or copy the address below into your wallet to send some Ether:

Donate Litecoin to admin

Scan to Donate Litecoin to admin
Scan the QR code or copy the address below into your wallet to send some Litecoin:

Donate Monero to admin

Scan to Donate Monero to admin
Scan the QR code or copy the address below into your wallet to send some Monero:

Donate ZCash to admin

Scan to Donate ZCash to admin
Scan the QR code or copy the address below into your wallet to send some ZCash:
Posted in

Comments are closed, but trackbacks and pingbacks are open.