compile-time error
From Lazarus wiki
Jump to navigationJump to search
│
English (en) │
suomi (fi) │
Compile-time error, which means the program did not compile. The compiler found and reported an error during compile time.
Fairly common compile time errors
- Missed semicolons - A fairly common coding error is the omission of the required semicolons. Usually every Pascal statement ends with a semicolon
Own compile time error
The compiler directive {$Fatal Error Message text}
can create your own compile time error:
begin
// some code ..
// To keep the compilation going
// you need to change the code at this point
{$Fatal Error Message text}
// .. here is the code that is not compiled
// because the compilation stopped in error
end.