5.6 Compiler Messages
All compiler applications use textual messages to report feedback during the compilation process.
There are several types of messages, described below. The behavior of the compiler when encountering a message of each type is also listed.
- Warning Messages
- Indicates source code or other situations that can be compiled, but is unusual and might lead to runtime failures of the code. The code or situation that triggered the warning should be investigated; however, compilation of the current module will continue, as will compilation of any remaining modules.
- Error Messages
- Indicates source code that is illegal or that compilation of code cannot take place. Compilation will be attempted for the remaining source code in the current module (however the cause of the initial error might trigger further errors) and compilation of the other modules in the project will take place, but the project will not be linked.
- Fatal Messages
- Indicates a situation in which compilation cannot proceed and which forces the compilation process to stop immediately.
For information on options that control compiler output of errors, warnings or comments, see 5.7.4 Options for Controlling the C++ Dialect.