*** Welcome to piglix ***

Compilation error


Compilation error refers to a state when a compiler fails to compile a piece of computer program source code, either due to errors in the code, or, more unusually, due to errors in the compiler itself. A compilation error message often helps programmers debugging the source code for possible errors. Although the exact definitions of compilation and interpretation are a bit vague, generally compilation errors are only referring to static compilation and not dynamic compilation. However, it is important to note that dynamic compilation can still technically have compilation errors, although many programmers and sources may identify them as run-time errors. Most just-in-time compilers, such as the Javascript V8 engine, will ambiguously refer to them as Syntax Errors since they check for them at run-time.

doy.cpp: In function `int main()': doy.cpp:25: `DayOfYear' undeclared (first use this function)

This means that the variable "DayOfYear" is trying to be used before being declared.

xyz.cpp: In function `int main()': xyz.cpp:6: `cout' undeclared (first use this function)

This means that the programmer most likely forgot to include iostream.

somefile.cpp:24: parse error before `something'

This could mean that a semi-colon is missing at the end of the previous statement.

An internal compiler error (commonly abbreviated as ICE) is an error that occurs not due to erroneous source code, but rather due to a bug in the compiler itself. They can sometimes be worked around by making small, insignificant changes to the source code around the line indicated by the error (if such a line is indicated at all), but sometimes larger changes must be made such as refactoring the code to avoid certain constructs or using a different compiler or different version of the compiler. When an internal compiler error is reached many compilers do not output a standard error, but instead output a shortened version, with additional files attached, that is only for internal compiler errors. This is in order to insure that the program doesn't crash when logging the error, which would make solving the error nigh impossible. The additional files attached for internal compiler errors usually have special formats that they save as, such as .dump for Java. These formats are generally more difficult to analyze than regular files, but can still have very helpful information for solving the bug causing the crash.


...
Wikipedia

...