Sign in Join
Wiki copytemporary

compile-time error: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: compile-time error

OldNewLine
1+Compile-time error, which means the [[Program|program]] did not compile. The [[Compiler|compiler]] found and reported an error during [[Compile time|compile time]].
2+
3+## Fairly common compile time errors
4+
5+- Missed [[;|semicolons]] - A fairly common coding error is the omission of the required semicolons. Usually every [[Pascal]] [[statement]] ends with a semicolon
6+
7+## Own compile time error
8+
9+The [[Compiler directive|compiler directive]] `{$Fatal Error Message text}` can create your own compile time error:
10+
11+``` pascal
12+begin
13+ // some code ..
14+
15+ // To keep the compilation going
16+ // you need to change the code at this point
17+
18+ {$Fatal Error Message text}
19+
20+ // .. here is the code that is not compiled
21+ // because the compilation stopped in error
22+end.
23+```
24+
25+## See also
26+
27+- [[runtime error|run-time error]]
28+
29+---
30+*From the Free Pascal wiki, page "compile-time error", as it stood on 2020-09-17 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history