Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between fatal error and non-fatal error

Tags:

c++

What is the main difference between fatal errors and non-fatal errors dipslayed in an IDE when one tries to compile the code?

In both cases the compiler shows an error message and the program is not compiled. Are fatal errors the undefined compiler errors in a compiler or linker?

like image 322
Minimus Heximus Avatar asked Nov 28 '22 15:11

Minimus Heximus


1 Answers

A fatal error would probably stop compilation of that translation unit immediately.

A compiler may continue compiling after an error in order to reveal to you a more comprehensive list of issues.

Although in your case it appears that the preprocessor has issued the fatal error. Perhaps it's simply down to the mood of the compiler writer.

like image 104
Bathsheba Avatar answered Dec 11 '22 18:12

Bathsheba