messages.tex 72 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422
  1. \section{General compiler messages}
  2. This section gives the compiler messages which are not fatal, but which
  3. display useful information. The number of such messages can be
  4. controlled with the various verbosity level \var{-v} switches.
  5. \begin{description}
  6. \item [Compiler: arg1]
  7. When the \var{-vt} switch is used, this line tells you what compiler
  8. is used.
  9. \item [Compiler OS: arg1]
  10. When the \var{-vd} switch is used, this line tells you what the source
  11. operating system is.
  12. \item [Info: Target OS: arg1]
  13. When the \var{-vd} switch is used, this line tells you what the target
  14. operating system is.
  15. \item [Using executable path: arg1]
  16. When the \var{-vt} switch is used, this line tells you where the compiler
  17. looks for it's binaries.
  18. \item [Using unit path: arg1]
  19. When the \var{-vt} switch is used, this line tells you where the compiler
  20. looks for compiled units. You can set this path with the \var{-Fu}
  21. \item [Using include path: arg1]
  22. When the \var{-vt} switch is used, this line tells you where the compiler
  23. looks for it's include files (files used in \var{\{\$I xxx\}} statements).
  24. You can set this path with the \var{-I} option.
  25. \item [Using library path: arg1]
  26. When the \var{-vt} switch is used, this line tells you where the compiler
  27. looks for the libraries. You can set this path with the \var{-Fl} option.
  28. \item [Using object path: arg1]
  29. When the \var{-vt} switch is used, this line tells you where the compiler
  30. looks for object files you link in (files used in \var{\{\$L xxx\}} statements).
  31. You can set this path with the \var{-Fo} option.
  32. \item [Info: arg1 Lines compiled, arg2 sec]
  33. When the \var{-vi} switch is used, the compiler reports the number
  34. of lines compiled, and the time it took to compile them (real time,
  35. not program time).
  36. \item [Fatal: No memory left]
  37. The compiler doesn't have enough memory to compile your program. There are
  38. several remedies for this:
  39. \begin{itemize}
  40. \item If you're using the build option of the compiler, try compiling the
  41. different units manually.
  42. \item If you're compiling a huge program, split it up in units, and compile
  43. these separately.
  44. \item If the previous two don't work, recompile the compiler with a bigger
  45. heap (you can use the \var{-Ch} option for this, \seeo{Ch})
  46. \end{itemize}
  47. \item [Info: Writing Resource String Table file: arg1]
  48. This message is shown when the compiler writes the Resource String Table
  49. file containing all the resource strings for a program.
  50. \item [Error: Writing Resource String Table file: arg1]
  51. This message is shown when the compiler encountered an error when writing
  52. the Resource String Table file
  53. \end{description}
  54. \section{Scanner messages.}
  55. This section lists the messages that the scanner emits. The scanner takes
  56. care of the lexical structure of the pascal file, i.e. it tries to find
  57. reserved words, strings, etc. It also takes care of directives and
  58. conditional compiling handling.
  59. \begin{description}
  60. \item [Fatal: Unexpected end of file]
  61. this typically happens in one of the following cases :
  62. \begin{itemize}
  63. \item The source file ends before the final \var{end.} statement. This
  64. happens mostly when the \var{begin} and \var{end} statements aren't
  65. balanced;
  66. \item An include file ends in the middle of a statement.
  67. \item A comment wasn't closed.
  68. \end{itemize}
  69. \item [Fatal: String exceeds line]
  70. You forgot probably to include the closing ' in a string, so it occupies
  71. multiple lines.
  72. \item [Fatal: illegal character arg1 (arg2)]
  73. An illegal character was encountered in the input file.
  74. \item [Fatal: Syntax error, arg1 expected but arg2 found]
  75. This indicates that the compiler expected a different token than
  76. the one you typed. It can occur almost everywhere where you make a
  77. mistake against the pascal language.
  78. \item [Start reading includefile arg1]
  79. When you provide the \var{-vt} switch, the compiler tells you
  80. when it starts reading an included file.
  81. \item [Warning: Comment level arg1 found]
  82. When the \var{-vw} switch is used, then the compiler warns you if
  83. it finds nested comments. Nested comments are not allowed in Turbo Pascal
  84. and can be a possible source of errors.
  85. \item [Note: \$F directive (FAR) ignored]
  86. The \var{FAR} directive is a 16-bit construction which is recorgnised
  87. but ignored by the compiler, since it produces 32 bit code.
  88. \item [Note: Stack check is global under Linux]
  89. Stack checking with the \var{-Cs} switch is ignored under \linux, since
  90. \linux does this for you. Only displayed when \var{-vn} is used.
  91. \item [Note: Ignored compiler switch arg1]
  92. With \var{-vn} on, the compiler warns if it ignores a switch
  93. \item [Warning: Illegal compiler switch arg1]
  94. You included a compiler switch (i.e. \var{\{\$... \}}) which the compiler
  95. doesn't know.
  96. \item [Warning: This compiler switch has a global effect]
  97. When \var{-vw} is used, the compiler warns if a switch is global.
  98. \item [Error: Illegal char constant]
  99. This happens when you specify a character with its ASCII code, as in
  100. \var{\#96}, but the number is either illegal, or out of range. The range
  101. is 1-255.
  102. \item [Fatal: Can't open file arg1]
  103. \fpc cannot find the program or unit source file you specified on the
  104. command line.
  105. \item [Fatal: Can't open include file arg1]
  106. \fpc cannot find the source file you specified in a \var{\{\$include ..\}}
  107. statement.
  108. \item [Error: Too many \$ENDIFs or \$ELSEs]
  109. Your \var{\{\$IFDEF ..\}} and {\{\$ENDIF\}} statements aren't balanced.
  110. \item [Warning: Records fields can be aligned to 1,2,4,8,16 or 32 bytes only]
  111. You are specifying the \var{\{\$PACKRECORDS n\} } with an illegal value for
  112. \var{n}. Only 1, 2, 4, 8, 16 and 32 are valid in this case.
  113. \item [Warning: Enumerated can be saved in 1,2 or 4 bytes only]
  114. You are specifying the \var{\{\$PACKENUM n\}} with an illegal value for
  115. \var{n}. Only 1,2 or 4 are valid in this case.
  116. \item [Error: \$ENDIF expected for arg1 arg2 defined in line arg3]
  117. Your conditional compilation statements are unbalanced.
  118. \item [Error: Syntax error while parsing a conditional compiling expression]
  119. There is an error in the expression following the \var{\{\$if ..\}} compiler
  120. directive.
  121. \item [Error: Evaluating a conditional compiling expression]
  122. There is an error in the expression following the \var{\{\$if ..\}} compiler
  123. directive.
  124. \item [Warning: Macro contents is cut after char 255 to evalute expression]
  125. The contents of macros canno be longer than 255 characters. This is a
  126. safety in the compiler, to prevent buffer overflows. This is shown as a
  127. warning, i.e. when the \var{-vw} switch is used.
  128. \item [Error: ENDIF without IF(N)DEF]
  129. Your \var{\{\$IFDEF ..\}} and {\{\$ENDIF\}} statements aren't balanced.
  130. \item [Fatal: User defined: arg1]
  131. A user defined fatal error occurred. see also the \progref
  132. \item [Error: User defined: arg1]
  133. A user defined error occurred. see also the \progref
  134. \item [Warning: User defined: arg1]
  135. A user defined warning occurred. see also the \progref
  136. \item [Note: User defined: arg1]
  137. A user defined note was encountered. see also the \progref
  138. \item [Hint: User defined: arg1]
  139. A user defined hint was encountered. see also the \progref
  140. \item [Info: User defined: arg1]
  141. User defined information was encountered. see also the \progref
  142. \item [Error: Keyword redefined as macro has no effect]
  143. You cannot redefine keywords with macros.
  144. \item [Fatal: Macro buffer overflow while reading or expanding a macro]
  145. Your macro or it's result was too long for the compiler.
  146. \item [Warning: Extension of macros exceeds a deep of 16.]
  147. When expanding a macro macros have been nested to a level of 16.
  148. The compiler will expand no further, since this may be a sign that
  149. recursion is used.
  150. \item [Error: compiler switches aren't allowed in (* ... *) styled comments]
  151. Compiler switches should always be between \var{\{ \}} comment delimiters.
  152. \item [Handling switch "arg1"]
  153. When you set debugging info on (\var{-vd}) the compiler tells you when it
  154. is evaluating conditional compile statements.
  155. \item [ENDIF arg1 found]
  156. When you turn on conditional messages(\var{-vc}), the compiler tells you
  157. where it encounters conditional statements.
  158. \item [IFDEF arg1 found, arg2]
  159. When you turn on conditional messages(\var{-vc}), the compiler tells you
  160. where it encounters conditional statements.
  161. \item [IFOPT arg1 found, arg2]
  162. When you turn on conditional messages(\var{-vc}), the compiler tells you
  163. where it encounters conditional statements.
  164. \item [IF arg1 found, arg2]
  165. When you turn on conditional messages(\var{-vc}), the compiler tells you
  166. where it encounters conditional statements.
  167. \item [IFNDEF arg1 found, arg2]
  168. When you turn on conditional messages(\var{-vc}), the compiler tells you
  169. where it encounters conditional statements.
  170. \item [ELSE arg1 found, arg2]
  171. When you turn on conditional messages(\var{-vc}), the compiler tells you
  172. where it encounters conditional statements.
  173. \item [Skipping until...]
  174. When you turn on conditional messages(\var{-vc}), the compiler tells you
  175. where it encounters conditional statements, and whether it is skipping or
  176. compiling parts.
  177. \item [Info: Press <return> to continue]
  178. When the \var{-vi} switch is used, the compiler stops compilation
  179. and waits for the \var{Enter} key to be pressed when it encounters
  180. a \var{\{\$STOP\}} directive.
  181. \item [Warning: Unsupported switch arg1]
  182. When warings are turned on (\var{-vw}) the compiler warns you about
  183. unsupported switches. This means that the switch is used in Delphi or
  184. Turbo Pascal, but not in \fpc
  185. \item [Warning: Illegal compiler directive arg1]
  186. When warings are turned on (\var{-vw}) the compiler warns you about
  187. unrecognised switches. For a list of recognised switches, \progref
  188. \item [Back in arg1]
  189. When you use (\var{-vt}) the compiler tells you when it has finished
  190. reading an include file.
  191. \item [Warning: Unsupported application type: arg1]
  192. You get this warning, ff you specify an unknown application type
  193. with the directive \var{\{\$APPTYPE\}}
  194. \item [Warning: APPTYPE isn't support by the target OS]
  195. The \var{\{\$APPTYPE\}} directive is supported by win32 applications only.
  196. \item [Warning: DESCRIPTION is only supported for OS2 and Win32]
  197. The \var{\{\$DESCRIPTION\}} directive is only supported for OS2 and Win32 targets.
  198. \item [Note: VERSION is not supported by target OS.]
  199. The \var{\{\$VERSION\}} directive is only supported by win32 target.
  200. \item [Note: VERSION only for exes or DLLs]
  201. The \var{\{\$VERSION\}} directive is only used for executable or DLL sources.
  202. \item [Warning: Wrong format for VERSION directive arg1]
  203. The \var{\{\$VERSION\}} directive format is majorversion.minorversion
  204. where majorversion and minorversion are words.
  205. \item [Warning: Unsupported assembler style specified arg1]
  206. When you specify an assembler mode with the \var{\{\$ASMMODE xxx\}}
  207. the compiler didn't recognize the mode you specified.
  208. \item [Warning: ASM reader switch is not possible inside asm statement, arg1 will be effective only for next]
  209. It is not possible to switch from one assembler reader to another
  210. inside an assmebler block. The new reader will be used for next
  211. assembler statement only.
  212. \item [Error: Wrong switch toggle, use ON/OFF or +/-]
  213. You need to use ON or OFF or a + or - to toggle the switch
  214. \item [Error: Resource files are not supported for this target]
  215. The target you are compiling for doesn't support resource files. The
  216. only targets which can use resource files are Win32 and OS/2 (EMX) currently
  217. \item [Warning: Include environment arg1 not found in environment]
  218. The included environment variable can't be found in the environment, it'll
  219. be replaced by an empty string instead.
  220. \item [Error: Illegal value for FPU register limit]
  221. Valid values for this directive are 0..8 and NORMAL/DEFAULT
  222. \item [Warning: Only one resource file is supported for this target]
  223. The target you are compiling for supports only one resource file. This is the
  224. case of OS/2 (EMX) currently. The first resource file found is used, the
  225. others are discarded.
  226. \end{description}
  227. \section{Parser messages}
  228. This section lists all parser messages. The parser takes care of the
  229. semantics of you language, i.e. it determines if your pascal constructs
  230. are correct.
  231. \begin{description}
  232. \item [Error: Parser - Syntax Error]
  233. An error against the Turbo Pascal language was encountered. This happens
  234. typically when an illegal character is found in the sources file.
  235. \item [Warning: Procedure type FAR ignored]
  236. This is a warning. \var{FAR} is a construct for 8 or 16 bit programs. Since
  237. the compile generates 32 bit programs, it ignores this directive.
  238. \item [Warning: Procedure type NEAR ignored]
  239. This is a warning. \var{NEAR} is a construct for 8 or 16 bit programs. Since
  240. the compile generates 32 bit programs, it ignores this directive.
  241. \item [Warning: Procedure type INTERRUPT ignored for not i386]
  242. This is a warning. \var{INTERRUPT} is a i386 specific construct
  243. and is ignored for other processors.
  244. \item [Error: INTERRUPT procedure can't be nested]
  245. An \var{INTERRUPT} procedure must be global.
  246. \item [Warning: Procedure type arg1 ignored]
  247. This is a warning. \var{REGISTER},\var{REINTRODUCE} is ignored by FPC programs for now.
  248. This is introduced first for Delphi compatibility.
  249. \item [Error: Not all declarations of arg1 are declared with OVERLOAD]
  250. When you want to use overloading using the \var{OVERLOAD} directive, then
  251. all declarations need to have \var{OVERLOAD} specified.
  252. \item [Error: No DLL File specified]
  253. No longer in use.
  254. \item [Error: Duplicate exported function name arg1]
  255. Exported function names inside a specific DLL must all be different
  256. \item [Error: Duplicate exported function index arg1]
  257. Exported function names inside a specific DLL must all be different
  258. \item [Error: Invalid index for exported function]
  259. DLL function index must be in the range \var{1..\$FFFF}
  260. \item [Warning: Relocatable DLL or executable arg1 debug info does not work, disabled.]
  261. \item [Warning: To allow debugging for win32 code you need to disable relocation with -WN option]
  262. Stabs info is wrong for relocatable DLL or EXES use -WN
  263. if you want to debug win32 executables.
  264. \item [Error: Constructor name must be INIT]
  265. You are declaring a constructor with a name which isn't \var{init}, and the
  266. \var{-Ss} switch is in effect. See the \var{-Ss} switch (\seeo{Ss}).
  267. \item [Error: Destructor name must be DONE]
  268. You are declaring a constructor with a name which isn't \var{done}, and the
  269. \var{-Ss} switch is in effect. See the \var{-Ss} switch (\seeo{Ss}).
  270. \item [Error: Illegal open parameter]
  271. You are trying to use the wrong type for an open parameter.
  272. \item [Error: Procedure type INLINE not supported]
  273. You tried to compile a program with C++ style inlining, and forgot to
  274. specify the \var{-Si} option (\seeo{Si}). The compiler doesn't support C++
  275. styled inlining by default.
  276. \item [Warning: Private methods shouldn't be VIRTUAL]
  277. You declared a method in the private part of a object (class) as
  278. \var{virtual}. This is not allowed. Private methods cannot be overridden
  279. anyway.
  280. \item [Warning: Constructor should be public]
  281. Constructors must be in the 'public' part of an object (class) declaration.
  282. \item [Warning: Destructor should be public]
  283. Destructors must be in the 'public' part of an object (class) declaration.
  284. \item [Note: Class should have one destructor only]
  285. You can declare only one destructor for a class.
  286. \item [Error: Local class definitions are not allowed]
  287. Classes must be defined globally. They cannot be defined inside a
  288. procedure or function
  289. \item [Fatal: Anonym class definitions are not allowed]
  290. An invalid object (class) declaration was encountered, i.e. an
  291. object or class without methods that isn't derived from another object or
  292. class. For example:
  293. \begin{verbatim}
  294. Type o = object
  295. a : longint;
  296. end;
  297. \end{verbatim}
  298. will trigger this error.
  299. \item [Error: The object arg1 has no VMT]
  300. \item [Error: Illegal parameter list]
  301. You are calling a function with parameters that are of a different type than
  302. the declared parameters of the function.
  303. \item [Error: Wrong parameter type specified for arg no. arg1]
  304. There is an error in the parameter list of the function or procedure.
  305. The compiler cannot determine the error more accurate than this.
  306. \item [Error: Wrong amount of parameters specified]
  307. There is an error in the parameter list of the function or procedure,
  308. the number of parameters is not correct.
  309. \item [Error: overloaded identifier arg1 isn't a function]
  310. The compiler encountered a symbol with the same name as an overloaded
  311. function, but it isn't a function it can overload.
  312. \item [Error: overloaded functions have the same parameter list]
  313. You're declaring overloaded functions, but with the same parameter list.
  314. Overloaded function must have at least 1 different parameter in their
  315. declaration.
  316. \item [Error: function header doesn't match the forward declaration arg1]
  317. You declared a function with same parameters but
  318. different result type or function modifiers.
  319. \item [Error: function header arg1 doesn't match forward : var name changes arg2 => arg3]
  320. You declared the function in the \var{interface} part, or with the
  321. \var{forward} directive, but define it with a different parameter list.
  322. \item [Note: Values in enumeration types have to be ascending]
  323. \fpc allows enumeration constructions as in C. Given the following
  324. declaration two declarations:
  325. \begin{verbatim}
  326. type a = (A_A,A_B,A_E:=6,A_UAS:=200);
  327. type a = (A_A,A_B,A_E:=6,A_UAS:=4);
  328. \end{verbatim}
  329. The second declaration would produce an error. \var{A\_UAS} needs to have a
  330. value higher than \var{A\_E}, i.e. at least 7.
  331. \item [Note: Interface and implementation names are different arg1 => arg2]
  332. This note warns you if the implementation and interface names of a
  333. functions are different, but they have the same mangled name. This
  334. is important when using overloaded functions (but should produce no error).
  335. \item [Error: With can not be used for variables in a different segment]
  336. With stores a variable locally on the stack,
  337. but this is not possible if the variable belongs to another segment.
  338. \item [Error: function nesting > 31]
  339. You can nest function definitions only 31 times.
  340. \item [Error: range check error while evaluating constants]
  341. The constants are out of their allowed range.
  342. \item [Warning: range check error while evaluating constants]
  343. The constants are out of their allowed range.
  344. \item [Error: duplicate case label]
  345. You are specifying the same label 2 times in a \var{case} statement.
  346. \item [Error: Upper bound of case range is less than lower bound]
  347. The upper bound of a \var{case} label is less than the lower bound and this
  348. is useless
  349. \item [Error: typed constants of classes are not allowed]
  350. You cannot declare a constant of type class or object.
  351. \item [Error: functions variables of overloaded functions are not allowed]
  352. You are trying to assign an overloaded function to a procedural variable.
  353. This isn't allowed.
  354. \item [Error: string length must be a value from 1 to 255]
  355. The length of a string in Pascal is limited to 255 characters. You are
  356. trying to declare a string with length lower than 1 or greater than 255
  357. (This is not true for \var{Longstrings} and \var{AnsiStrings}.
  358. \item [Warning: use extended syntax of NEW and DISPOSE for instances of objects]
  359. If you have a pointer \var{a} to a class type, then the statement
  360. \var{new(a)} will not initialize the class (i.e. the constructor isn't
  361. called), although space will be allocated. you should issue the
  362. \var{new(a,init)} statement. This will allocate space, and call the
  363. constructor of the class.
  364. \item [Warning: use of NEW or DISPOSE for untyped pointers is meaningless]
  365. \item [Error: use of NEW or DISPOSE is not possible for untyped pointers]
  366. You cannot use \var{new(p)} or \var{dispose(p)} if \var{p} is an untyped pointer
  367. because no size is associated to an untyped pointer.
  368. Accepted for compatibility in \var{tp} and \var{delphi} modes.
  369. \item [Error: class identifier expected]
  370. This happens when the compiler scans a procedure declaration that contains
  371. a dot,
  372. i.e., a object or class method, but the type in front of the dot is not
  373. a known type.
  374. \item [Error: type identifier not allowed here]
  375. You cannot use a type inside an expression.
  376. \item [Error: method identifier expected]
  377. This identifier is not a method.
  378. This happens when the compiler scans a procedure declaration that contains
  379. a dot, i.e., a object or class method, but the procedure name is not a
  380. procedure of this type.
  381. \item [Error: function header doesn't match any method of this class]
  382. This identifier is not a method.
  383. This happens when the compiler scans a procedure declaration that contains
  384. a dot, i.e., a object or class method, but the procedure name is not a
  385. procedure of this type.
  386. \item [procedure/function arg1]
  387. When using the \var{-vp} switch, the compiler tells you when it starts
  388. processing a procedure or function implementation.
  389. \item [Error: Illegal floating point constant]
  390. The compiler expects a floating point expression, and gets something else.
  391. \item [Error: FAIL can be used in constructors only]
  392. You are using the \var{FAIL} instruction outside a constructor method.
  393. \item [Error: Destructors can't have parameters]
  394. You are declaring a destructor with a parameter list. Destructor methods
  395. cannot have parameters.
  396. \item [Error: Only class methods can be referred with class references]
  397. This error occurs in a situation like the following:
  398. \begin{verbatim}
  399. Type :
  400. Tclass = Class of Tobject;
  401. Var C : TClass;
  402. begin
  403. ...
  404. C.free
  405. \end{verbatim}
  406. \var{Free} is not a class method and hence cannot be called with a class
  407. reference.
  408. \item [Error: Only class methods can be accessed in class methods]
  409. This is related to the previous error. You cannot call a method of an object
  410. from a inside a class method. The following code would produce this error:
  411. \begin{verbatim}
  412. class procedure tobject.x;
  413. begin
  414. free
  415. \end{verbatim}
  416. Because free is a normal method of a class it cannot be called from a class
  417. method.
  418. \item [Error: Constant and CASE types do not match]
  419. One of the labels is not of the same type as the case variable.
  420. \item [Error: The symbol can't be exported from a library]
  421. You can only export procedures and functions when you write a library. You
  422. cannot export variables or constants.
  423. \item [Warning: An inherited method is hidden by arg1]
  424. A method that is declared \var{virtual} in a parent class, should be
  425. overridden in the descendent class with the \var{override} directive. If you
  426. don't specify the \var{override} directive, you will hide the parent method;
  427. you will not override it.
  428. \item [Error: There is no method in an ancestor class to be overridden: arg1]
  429. You try to \var{override} a virtual method of a parent class that doesn't
  430. exist.
  431. \item [Error: No member is provided to access property]
  432. You specified no \var{read} directive for a property.
  433. \item [Warning: Stored prorperty directive is not yet implemented]
  434. The \var{stored} directive is not yet implemented
  435. \item [Error: Illegal symbol for property access]
  436. There is an error in the \var{read} or \var{write} directives for an array
  437. property. When you declare an array property, you can only access it with
  438. procedures and functions. The following code woud cause such an error.
  439. \begin{verbatim}
  440. tmyobject = class
  441. i : integer;
  442. property x [i : integer]: integer read I write i;
  443. \end{verbatim}
  444. \item [Error: Cannot access a protected field of an object here]
  445. Fields that are declared in a \var{protected} section of an object or class
  446. declaration cannot be accessed outside the module wher the object is
  447. defined, or outside descendent object methods.
  448. \item [Error: Cannot access a private field of an object here]
  449. Fields that are declared in a \var{private} section of an object or class
  450. declaration cannot be accessed outside the module where the class is
  451. defined.
  452. \item [Warning: overloaded method of virtual method should be virtual: arg1]
  453. If you declare overloaded methods in a class, then they should either all be
  454. virtual, or none. You shouldn't mix them.
  455. \item [Warning: overloaded method of non-virtual method should be non-virtual: arg1]
  456. If you declare overloaded methods in a class, then they should either all be
  457. virtual, or none. You shouldn't mix them.
  458. \item [Error: overloaded methods which are virtual must have the same return type: arg1]
  459. If you declare virtual overloaded methods in a class definition, they must
  460. have the same return type.
  461. \item [Error: EXPORT declared functions can't be nested]
  462. You cannot declare a function or procedure within a function or procedure
  463. that was declared as an export procedure.
  464. \item [Error: methods can't be EXPORTed]
  465. You cannot declare a procedure that is a method for an object as
  466. \var{export}ed. That is, your methods cannot be called from a C program.
  467. \item [Error: call by var parameters have to match exactly: Got arg1 expected arg2]
  468. When calling a function declared with \var{var} parameters, the variables in
  469. the function call must be of exactly the same type. There is no automatic
  470. type conversion.
  471. \item [Error: Class isn't a parent class of the current class]
  472. When calling inherited methods, you are trying to call a method of a strange
  473. class. You can only call an inherited method of a parent class.
  474. \item [Error: SELF is only allowed in methods]
  475. You are trying to use the \var{self} parameter outside an object's method.
  476. Only methods get passed the \var{self} parameters.
  477. \item [Error: methods can be only in other methods called direct with type identifier of the class]
  478. A construction like \var{sometype.somemethod} is only allowed in a method.
  479. \item [Error: Illegal use of ':']
  480. You are using the format \var{:} (colon) 2 times on an expression that
  481. is not a real expression.
  482. \item [Error: range check error in set constructor or duplicate set element]
  483. The declaration of a set contains an error. Either one of the elements is
  484. outside the range of the set type, either two of the elements are in fact
  485. the same.
  486. \item [Error: Pointer to object expected]
  487. You specified an illegal type in a \var{New} statement.
  488. The extended synax of \var{New} needs an object as a parameter.
  489. \item [Error: Expression must be constructor call]
  490. When using the extended syntax of \var{new}, you must specify the constructor
  491. method of the object you are trying to create. The procedure you specified
  492. is not a constructor.
  493. \item [Error: Expression must be destructor call]
  494. When using the extended syntax of \var{dispose}, you must specify the
  495. destructor method of the object you are trying to dispose of.
  496. The procedure you specified is not a destructor.
  497. \item [Error: Illegal order of record elements]
  498. When declaring a constant record, you specified the fields in the wrong
  499. order.
  500. \item [Error: Expression type must be class or record type]
  501. A \var{with} statement needs an argument that is of the type \var{record}
  502. or \var{class}. You are using \var{with} on an expression that is not of
  503. this type.
  504. \item [Error: Procedures can't return a value]
  505. In \fpc, you can specify a return value for a function when using
  506. the \var{exit} statement. This error occurs when you try to do this with a
  507. procedure. Procedures cannot return a value.
  508. \item [Error: constructors and destructors must be methods]
  509. You're declaring a procedure as destructor or constructor, when the
  510. procedure isn't a class method.
  511. \item [Error: Operator is not overloaded]
  512. You're trying to use an overloaded operator when it isn't overloaded for
  513. this type.
  514. \item [Error: Impossible to overload assignment for equal types]
  515. You can not overload assignment for types
  516. that the compiler considers as equal.
  517. \item [Error: Impossible operator overload]
  518. The combination of operator, arguments and return type are
  519. incompatible.
  520. \item [Error: Re-raise isn't possible there]
  521. You are trying to raise an exception where it isn't allowed. You can only
  522. raise exceptions in an \var{except} block.
  523. \item [Error: The extended syntax of new or dispose isn't allowed for a class]
  524. You cannot generate an instance of a class with the extended syntax of
  525. \var{new}. The constructor must be used for that. For the same reason, you
  526. cannot call \var{Dispose} to de-allocate an instance of a class, the
  527. destructor must be used for that.
  528. \item [Error: Assembler incompatible with function return type]
  529. You're trying to implement a \var{assembler} function, but the return type
  530. of the function doesn't allow that.
  531. \item [Error: Procedure overloading is switched off]
  532. When using the \var{-So} switch, procedure overloading is switched off.
  533. Turbo Pascal does not support function overloading.
  534. \item [Error: It is not possible to overload this operator (overload = instead)]
  535. You are trying to overload an operator which cannot be overloaded.
  536. The following operators can be overloaded :
  537. \begin{verbatim}
  538. +, -, *, /, =, >, <, <=, >=, is, as, in, **, :=
  539. \end{verbatim}
  540. \item [Error: Comparative operator must return a boolean value]
  541. When overloading the \var{=} operator, the function must return a boolean
  542. value.
  543. \item [Error: Only virtual methods can be abstract]
  544. You are declaring a method as abstract, when it isn't declared to be
  545. virtual.
  546. \item [Fatal: Use of unsupported feature!]
  547. You're trying to force the compiler into doing something it cannot do yet.
  548. \item [Error: The mix of CLASSES and OBJECTS isn't allowed]
  549. You cannot derive \var{objects} and \var{classes} intertwined . That is,
  550. a class cannot have an object as parent and vice versa.
  551. \item [Warning: Unknown procedure directive had to be ignored: arg1]
  552. The procedure direcive you secified is unknown. Recognised procedure
  553. directives are \var{cdecl}, \var{stdcall}, \var{popstack}, \var{pascal}
  554. \var{register}, \var{export}.
  555. \item [Error: absolute can only be associated to ONE variable]
  556. You cannot specify more than one variable before the \var{absolute} directive.
  557. Thus, the following construct will provide this error:
  558. \begin{verbatim}
  559. Var Z : Longint;
  560. X,Y : Longint absolute Z;
  561. \end{verbatim}
  562. \item [ absolute can only be associated a var or const ]
  563. The address of a \var{absolute} directive can only point to a variable or
  564. constant. Therefore, the following code will produce this error:
  565. \begin{verbatim}
  566. Procedure X;
  567. var p : longint absolute x;
  568. \end{verbatim}
  569. \item [Error: absolute can only be associated a var or const]
  570. The address of a \var{absolute} directive can only point to a variable or
  571. constant. Therefore, the following code will produce this error:
  572. \begin{verbatim}
  573. Procedure X;
  574. var p : longint absolute x;
  575. \end{verbatim}
  576. \item [Error: Only ONE variable can be initialized]
  577. You cannot specify more than one variable with a initial value
  578. in Delphi syntax.
  579. \item [Error: Abstract methods shouldn't have any definition (with function body)]
  580. Abstract methods can only be declared, you cannot implement them. They
  581. should be overridden by a descendant class.
  582. \item [Error: This overloaded function can't be local (must be exported)]
  583. You are defining a overloaded function in the implementation part of a unit,
  584. but there is no corresponding declaration in the interface part of the unit.
  585. \item [Warning: Virtual methods are used without a constructor in arg1]
  586. If you declare objects or classes that contain virtual methods, you need
  587. to have a constructor and destructor to initialize them. The compiler
  588. encountered an object or class with virtual methods that doesn't have
  589. a constructor/destructor pair.
  590. \item [Macro defined: arg1]
  591. When \var{-vm} is used, the compiler tells you when it defines macros.
  592. \item [Macro undefined: arg1]
  593. When \var{-vm} is used, the compiler tells you when it undefines macros.
  594. \item [Macro arg1 set to arg2]
  595. When \var{-vm} is used, the compiler tells you what values macros get.
  596. \item [Info: Compiling arg1]
  597. When you turn on information messages (\var{-vi}), the compiler tells you
  598. what units it is recompiling.
  599. \item [Parsing interface of unit arg1]
  600. This tells you that the reading of the interface
  601. of the current unit starts
  602. \item [Parsing implementation of arg1]
  603. This tells you that the code reading of the implementation
  604. of the current unit, library or program starts
  605. \item [Compiling arg1 for the second time]
  606. When you request debug messages (\var{-vd}) the compiler tells you what
  607. units it recompiles for the second time.
  608. \item [Error: Array properties aren't allowed here]
  609. You cannot use array properties at that point in the source.
  610. \item [Error: No property found to override]
  611. You want to overrride a property of a parent class, when there is, in fact,
  612. no such property in the parent class.
  613. \item [Error: Only one default property is allowed, found inherited default property in class arg1]
  614. You specified a property as \var{Default}, but a parent class already has a
  615. default property, and a class can have only one default property.
  616. \item [Error: The default property must be an array property]
  617. Only array properties of classes can be made \var{default} properties.
  618. \item [Error: Virtual constructors are only supported in class object model]
  619. You cannot have virtual constructors in objects. You can only have them
  620. in classes.
  621. \item [Error: No default property available]
  622. You try to access a default property of a class, but this class (or one of
  623. it's ancestors) doesn't have a default property.
  624. \item [Error: The class can't have a published section, use the {\$M+} switch]
  625. If you want a \var{published} section in a class definition, you must
  626. use the \var{\{\$M+\}} switch, whch turns on generation of type
  627. information.
  628. \item [Error: Forward declaration of class arg1 must be resolved here to use the class as ancestor]
  629. To be able to use an object as an ancestor object, it must be defined
  630. first. This error occurs in the following situation:
  631. \begin{verbatim}
  632. Type ParentClas = Class;
  633. ChildClass = Class(ParentClass)
  634. ...
  635. end;
  636. \end{verbatim}
  637. Where \var{ParentClass} is declared but not defined.
  638. \item [Error: Local operators not supported]
  639. You cannot overload locally, i.e. inside procedures or function
  640. definitions.
  641. \item [Error: Procedure directive arg1 not allowed in interface section]
  642. This procedure directive is not allowed in the \var{interface} section of
  643. a unit. You can only use it in the \var{implementation} section.
  644. \item [Error: Procedure directive arg1 not allowed in implementation section]
  645. This procedure directive is not defined in the \var{implementation} section of
  646. a unit. You can only use it in the \var{interface} section.
  647. \item [Error: Procedure directive arg1 not allowed in procvar declaration]
  648. This procedure directive cannot be part of a procedural or function
  649. type declaration.
  650. \item [Error: Function is already declared Public/Forward arg1]
  651. You will get this error if a function is defined as \var{forward} twice.
  652. Or it is once in the \var{interface} section, and once as a \var{forward}
  653. declaration in the \var{implmentation} section.
  654. \item [Error: Can't use both EXPORT and EXTERNAL]
  655. These two procedure directives are mutually exclusive
  656. \item [Error: NAME keyword expected]
  657. The definition of an external variable needs a \var{name} clause.
  658. \item [Warning: arg1 not yet supported inside inline procedure/function]
  659. Inline procedures don't support this declaration.
  660. \item [Warning: Inlining disabled]
  661. Inlining of procedures is disabled.
  662. \item [Info: Writing Browser log arg1]
  663. When information messages are on, the compiler warns you when it
  664. writes the browser log (generated with the \var{\{\$Y+ \}} switch).
  665. \item [Hint: may be pointer dereference is missing]
  666. The compiler thinks that a pointer may need a dereference.
  667. \item [Fatal: Selected assembler reader not supported]
  668. The selected assembler reader (with \var{\{\$ASMMODE xxx\}} is not
  669. supported. The compiler can be compiled with or without support for a
  670. particular assembler reader.
  671. \item [Error: Procedure directive arg1 has conflicts with other directives]
  672. You specified a procedure directive that conflicts with other directives.
  673. for instance \var{cdecl} and \var{pascal} are mutually exclusive.
  674. \item [Error: Calling convention doesn't match forward]
  675. This error happens when you declare a function or procedure with
  676. e.g. \var{cdecl;} but omit this directive in the implementation, or vice
  677. versa. The calling convention is part of the function declaration, and
  678. must be repeated in the function definition.
  679. \item [Error: Register calling (fastcall) not supported]
  680. The \var{register} calling convention, i.e., arguments are passed in
  681. registers instead of on the stack is not supported. Arguments are always
  682. passed on the stack.
  683. \item [Error: Property can't have a default value]
  684. Set properties or indexed properties cannot have a default value.
  685. \item [Error: The default value of a property must be constant]
  686. The value of a \var{default} declared property must be known at compile
  687. time. The value you specified is only known at run time. This happens
  688. .e.g. if you specify a variable name as a default value.
  689. \item [Error: Symbol can't be published, can be only a class]
  690. Only class type variables can be in a \var{published} section of a class
  691. if they are not declared as a property.
  692. \item [Error: That kind of property can't be published]
  693. Properties in a \var{published} section cannot be array properties.
  694. they must be moved to public sections. Properties in a \var{published}
  695. section must be an ordinal type, a real type, strings or sets.
  696. \item [Warning: Empty import name specified]
  697. Both index and name for the import are 0 or empty
  698. \item [Warning: An import name is required]
  699. Some targets need a name for the imported procedure or a cdecl specifier
  700. \item [Error: Function internal name changed after use of function]
  701. This is an internal error; please report any occurrences of this error
  702. to the \fpc team.
  703. \item [Error: Division by zero]
  704. There is a divsion by zero encounted
  705. \item [Error: Invalid floating point operation]
  706. An operation on two real type values produced an overflow or a division
  707. by zero.
  708. \item [Error: Upper bound of range is less than lower bound]
  709. The upper bound of a \var{case} label is less than the lower bound and this
  710. is not possible
  711. \item [Warning: string "arg1" is longer than arg2]
  712. The size of the constant string is larger than the size you specified in
  713. string type definition
  714. \item [Error: string length is larger than array of char length]
  715. The size of the constant string is larger than the size you specified in
  716. the array[x..y] of char definition
  717. \item [Error: Illegal expression after message directive]
  718. \fpc supports only integer or string values as message constants
  719. \item [Error: Message handlers can take only one call by ref. parameter]
  720. A method declared with the \var{message}-directive as message handler
  721. can take only one parameter which must be declared as call by reference
  722. Parameters are declared as call by reference using the \var{var}-directive
  723. \item [Error: Duplicate message label: arg1]
  724. A label for a message is used twice in one object/class
  725. \item [Error: Self can be only an explicit parameter in message handlers]
  726. The self parameter can be passed only explicitly in a method which
  727. is declared as message method handler.
  728. \item [Error: Threadvars can be only static or global]
  729. Threadvars must be static or global, you can't declare a thread
  730. local to a procedure. Local variables are always local to a thread,
  731. because every thread has it's own stack and local variables
  732. are stored on the stack
  733. \item [Fatal: Direct assembler not supported for binary output format]
  734. You can't use direct assembler when using a binary writer, choose an
  735. other outputformat or use an other assembler reader
  736. \item [Warning: Don't load OBJPAS unit manual, use {\$mode objfpc} or {\$mode delphi} instead]
  737. You're trying to load the ObjPas unit manual from a uses clause. This is
  738. not a good idea to do, you can better use the \var{\{\$mode objfpc\}} or
  739. \var{\{\$mode delphi\}}
  740. directives which load the unit automaticly
  741. \item [Error: OVERRIDE can't be used in objects]
  742. Override isn't support for objects, use VIRTUAL instead to override
  743. a method of an anchestor object
  744. \item [Error: Data types which requires initialization/finalization can't be used in variant records]
  745. Some data type (e.g. \var{ansistring}) needs initialization/finalization
  746. code which is implicitly generated by the compiler. Such data types
  747. can't be used in the variant part of a record.
  748. \item [Error: Resourcestrings can be only static or global]
  749. Resourcestring can not be declared local, only global or using the static
  750. directive.
  751. \item [Error: Exit with argument can't be used here]
  752. an exit statement with an argument for the return value can't be used here, this
  753. can happen e.g. in \var{try..except} or \var{try..finally} blocks
  754. \item [Error: The type of the storage symbol must be boolean]
  755. If you specify a storage symbol in a property declaration, it must be of
  756. the type boolean
  757. \item [Error: This symbol isn't allowed as storage symbol]
  758. You can't use this type of symbol as storage specifier in property
  759. declaration. You can use only methods with the result type boolean,
  760. boolean class fields or boolean constants
  761. \item [Error: Only class which are compiled in \$M+ mode can be published]
  762. In the published section of a class can be only class as fields used which
  763. are compiled in \var{\{\$M+\}} or which are derived from such a class. Normally
  764. such a class should be derived from TPersitent
  765. \item [Error: Procedure directive expected]
  766. When declaring a procedure in a const block you used a ; after the
  767. procedure declaration after which a procedure directive must follow.
  768. Correct declarations are:
  769. \begin{verbatim}
  770. const
  771. p : procedure;stdcall=nil;
  772. p : procedure stdcall=nil;
  773. \end{verbatim}
  774. \item [Error: The value for a property index must be of an ordinal type]
  775. The value you use to index a property must be of an ordinal type, for
  776. example an integer or enumerated type.
  777. \item [Error: Procedure name to short to be exported]
  778. The length of the procedure/function name must be at least 2 characters
  779. long. This is because of a bug in dlltool which doesn't parse the .def
  780. file correct with a name of length 1.
  781. \item [Error: No DEFFILE entry can be generated for unit global vars]
  782. \item [Error: Compile without -WD option]
  783. \end{description}
  784. \section{Type checking errors}
  785. This section lists all errors that can occur when type checking is
  786. performed.
  787. \begin{description}
  788. \item [Error: Type mismatch]
  789. This can happen in many cases:
  790. \begin{itemize}
  791. \item The variable you're assigning to is of a different type than the
  792. expression in the assignment.
  793. \item You are calling a function or procedure with parameters that are
  794. incompatible with the parameters in the function or procedure definition.
  795. \end{itemize}
  796. \item [Error: Incompatible types: got "arg1" expected "arg2"]
  797. There is no conversion possible between the two types
  798. Another possiblity is that they are declared in different
  799. declarations:
  800. \begin{verbatim}
  801. Var
  802. A1 : Array[1..10] Of Integer;
  803. A2 : Array[1..10] Of Integer;
  804. Begin
  805. A1:=A2; { This statement gives also this error, it
  806. is due the strict type checking of pascal }
  807. End.
  808. \end{verbatim}
  809. \item [Error: Type mismatch between arg1 and arg2]
  810. The types are not equal
  811. \item [Error: Type identifier expected]
  812. The identifier is not a type, or you forgot to supply a type identifier.
  813. \item [Error: Variable identifier expected]
  814. This happens when you pass a constant to a \var{Inc} var or \var{Dec}
  815. procedure. You can only pass variables as arguments to these functions.
  816. \item [Error: Integer expression expected, but got "arg1"]
  817. The compiler expects an expression of type integer, but gets a different
  818. type.
  819. \item [Error: Boolean expression expected, but got "arg1"]
  820. The expression must be a boolean type, it should be return true or
  821. false.
  822. \item [Error: Ordinal expression expected]
  823. The expression must be of ordinal type, i.e., maximum a \var{Longint}.
  824. This happens, for instance, when you specify a second argument
  825. to \var{Inc} or \var{Dec} that doesn't evaluate to an ordinal value.
  826. \item [Error: pointer type expected, but got "arg1"]
  827. The variable or expression isn't of the type \var{pointer}. This
  828. happens when you pass a variable that isn't a pointer to \var{New}
  829. or \var{Dispose}.
  830. \item [Error: class type expected, but got "arg1"]
  831. The variable of expression isn't of the type \var{class}. This happens
  832. typically when
  833. \begin{enumerate}
  834. \item The parent class in a class declaration isn't a class.
  835. \item An exception handler (\var{On}) contains a type identifier that
  836. isn't a class.
  837. \end{enumerate}
  838. \item [Error: Variable or type indentifier expected]
  839. The argument to the \var{High} or \var{Low} function is not a variable
  840. nor a type identifier.
  841. \item [Error: Can't evaluate constant expression]
  842. No longer in use.
  843. \item [Error: Set elements are not compatible]
  844. You are trying to make an operation on two sets, when the set element types
  845. are not the same. The base type of a set must be the same when taking the
  846. union
  847. \item [Error: Operation not implemented for sets]
  848. several binary operations are not defined for sets
  849. like div mod ** (also >= <= for now)
  850. \item [Warning: Automatic type conversion from floating type to COMP which is an integer type]
  851. An implicit type conversion from a real type to a \var{comp} is
  852. encountered. Since \var{Comp} is a 64 bit integer type, this may indicate
  853. an error.
  854. \item [Hint: use DIV instead to get an integer result]
  855. When hints are on, then an integer division with the '/' operator will
  856. procuce this message, because the result will then be of type real
  857. \item [Error: string types doesn't match, because of \$V+ mode]
  858. When compiling in \var{\{\$V+\}} mode, the string you pass as a parameter
  859. should be of the exact same type as the declared parameter of the procedure.
  860. \item [Error: succ or pred on enums with assignments not possible]
  861. When you declared an enumeration type which has assignments in it, as in C,
  862. like in the following:
  863. \begin{verbatim}
  864. Tenum = (a,b,e:=5);
  865. \end{verbatim}
  866. you cannot use the \var{Succ} or \var{Pred} functions on them.
  867. \item [Error: Can't read or write variables of this type]
  868. You are trying to \var{read} or \var{write} a variable from or to a
  869. file of type text, which doesn't support that. Only integer types,
  870. booleans, reals, pchars and strings can be read from/written to a text file.
  871. \item [Error: Can't use readln or writeln on typed file]
  872. \var{readln} and \var{writeln} are only allowed for text files.
  873. \item [Error: Can't use read or write on untyped file.]
  874. \var{read} and \var{write} are only allowed for text or typed files.
  875. \item [Error: Type conflict between set elements]
  876. There is at least one set element which is of the wrong type, i.e. not of
  877. the set type.
  878. \item [Warning: lo/hi(dword/qword) returns the upper/lower word/dword]
  879. \fpc supports an overloaded version of \var{lo/hi} for \var{longint/dword/int64/qword}
  880. which returns the lower/upper word/dword of the argument. TP always uses
  881. a 16 bit \var{lo/hi} which returns always bits 0..7 for \var{lo} and the
  882. bits 8..15 for \var{hi}. If you want the TP behavior you have
  883. to type cast the argument to \var{word/integer}
  884. \item [Error: Integer or real expression expected]
  885. The first argument to \var{str} must a real or integer type.
  886. \item [Error: Wrong type arg1 in array constructor]
  887. You are trying to use a type in an array constructor which is not
  888. allowed.
  889. \item [Error: Incompatible type for arg no. arg1: Got arg2, expected arg3]
  890. You are trying to pass an invalid type for the specified parameter.
  891. \item [Error: Method (variable) and Procedure (variable) are not compatible]
  892. You can't assign a method to a procedure variable or a procedure to a
  893. method pointer.
  894. \item [Error: Illegal constant passed to internal math function]
  895. The constant argument passed to a ln or sqrt function is out of
  896. the definition range of these functions.
  897. \item [Error: Can't get the address of constants]
  898. It's not possible to get the address of a constant, because they
  899. aren't stored in memory, you can try making it a typed constant.
  900. \item [Error: Argument can't be assigned to]
  901. Only expressions which can be on the left side of an
  902. assignment can be passed as call by reference argument
  903. Remark: Properties can be only
  904. used on the left side of an assignment, but they can't be used as arguments
  905. \item [Error: Can't assign local procedure/function to procedure variable]
  906. It's not allowed to assign a local procedure/function to a
  907. procedure variable, because the calling of local procedure/function is
  908. different. You can only assign local procedure/function to a void pointer.
  909. \item [Error: Can't assign values to an address]
  910. It's not allowed to assign a value to an address of a variable,constant,
  911. procedure or function. You can try compiling with -So if the identifier
  912. is a procedure variable.
  913. \item [Error: Can't assign values to const variable]
  914. It's not allowed to assign a value to a variable which is declared
  915. as a const. This is normally a parameter declared as const, to allow
  916. changing make the parameter value or var.
  917. \end{description}
  918. \section{Symbol handling}
  919. This section lists all the messages that concern the handling of symbols.
  920. This means all things that have to do with procedure and variable names.
  921. \begin{description}
  922. \item [Error: Identifier not found arg1]
  923. The compiler doesn't know this symbol. Usually happens when you misspel
  924. the name of a variable or procedure, or when you forgot to declare a
  925. variable.
  926. \item [Fatal: Internal Error in SymTableStack()]
  927. An internal error occurred in the compiler; If you encounter such an error,
  928. please contact the developers and try to provide an exact description of
  929. the circumstances in which the error occurs.
  930. \item [Error: Duplicate identifier arg1]
  931. The identifier was already declared in the current scope.
  932. \item [Hint: Identifier already defined in arg1 at line arg2]
  933. The identifier was already declared in a previous scope.
  934. \item [Error: Unknown identifier arg1]
  935. The identifier encountered hasn't been declared, or is used outside the
  936. scope where it's defined.
  937. \item [Error: Forward declaration not solved arg1]
  938. This can happen in two cases:
  939. \begin{itemize}
  940. \item This happens when you declare a function (in the \var{interface} part, or
  941. with a \var{forward} directive, but do not implement it.
  942. \item You reference a type which isn't declared in the current \var{type}
  943. block.
  944. \end{itemize}
  945. \item [Fatal: Identifier type already defined as type]
  946. You are trying to redefine a type.
  947. \item [Error: Error in type definition]
  948. There is an error in your definition of a new array type:
  949. \item One of the range delimiters in an array declaration is erroneous.
  950. For example, \var{Array [1..1.25]} will trigger this error.
  951. \item [Error: Type identifier not defined]
  952. The type identifier has not been defined yet.
  953. \item [Error: Forward type not resolved arg1]
  954. A symbol was forward defined, but no declaration was encountered.
  955. \item [Error: Only static variables can be used in static methods or outside methods]
  956. A static method of an object can only access static variables.
  957. \item [Error: Invalid call to tvarsym.mangledname()]
  958. An internal error occurred in the compiler; If you encounter such an error,
  959. please contact the developers and try to provide an exact description of
  960. the circumstances in which the error occurs.
  961. \item [Fatal: record or class type expected]
  962. The variable or expression isn't of the type \var{record} or \var{class}.
  963. \item [Error: Instances of classes or objects with an abstract method are not allowed]
  964. You are trying to generate an instance of a class which has an abstract
  965. method that wasn't overridden.
  966. \item [Warning: Label not defined arg1]
  967. A label was declared, but not defined.
  968. \item [Error: Label used but not defined arg1]
  969. A label was declared and used, but not defined.
  970. \item [Error: Illegal label declaration]
  971. This error should never happen; it occurs if a label is defined outside a
  972. procedure or function.
  973. \item [Error: GOTO and LABEL are not supported (use switch -Sg)]
  974. You must compile a program which has \var{label}s and \var{goto} statements
  975. with the \var{-Sg} switch. By default, \var{label} and \var{goto} aren't
  976. supported.
  977. \item [Error: Label not found]
  978. A \var{goto label} was encountered, but the label isn't declared.
  979. \item [Error: identifier isn't a label]
  980. The identifier specified after the \var{goto} isn't of type label.
  981. \item [Error: label already defined]
  982. You are defining a label twice. You can define a label only once.
  983. \item [Error: illegal type declaration of set elements]
  984. The declaration of a set contains an invalid type definition.
  985. \item [Error: Forward class definition not resolved arg1]
  986. You declared a class, but you didn't implement it.
  987. \item [Hint: Unit arg1 not used in arg2]
  988. The unit referenced in the \var{uses} clause is not used.
  989. \item [Hint: Parameter arg1 not used]
  990. This is a warning. The identifier was declared (locally or globally) but
  991. wasn't used (locally or globally).
  992. \item [Note: Local variable arg1 not used]
  993. You have declared, but not used a variable in a procedure or function
  994. implementation.
  995. \item [Hint: Value parameter arg1 is assigned but never used]
  996. This is a warning. The identifier was declared (locally or globally)
  997. set but not used (locally or globally).
  998. \item [Note: Local variable arg1 is assigned but never used]
  999. The variable in a procedure or function
  1000. implementation is declared, set but never used.
  1001. \item [Hint: Local arg1 arg2 is not used]
  1002. A local symbol is never used.
  1003. \item [Note: Private field arg1.arg2 is never used]
  1004. \item [Note: Private field arg1.arg2 is assigned but never used]
  1005. \item [Note: Private method arg1.arg2 never used]
  1006. \item [Error: Set type expected]
  1007. The variable or expression isn't of type \var{set}. This happens in an
  1008. \var{in} statement.
  1009. \item [Warning: Function result does not seem to be set]
  1010. You can get this warning if the compiler thinks that a function return
  1011. value is not set. This will not be displayed for assembler procedures,
  1012. or procedures that contain assembler blocks.
  1013. \item [Warning: Type arg1 is not aligned correctly in current record for C]
  1014. Arrays with sizes not multiples of 4 will be wrongly aligned
  1015. for C structures.
  1016. \item [Error: Unknown record field identifier arg1]
  1017. The field doesn't exist in the record definition.
  1018. \item [Warning: Local variable arg1 does not seem to be initialized]
  1019. \item [Warning: Variable arg1 does not seem to be initialized]
  1020. These messages are displayed if the compiler thinks that a variable will
  1021. be used (i.e. appears in the right-hand-side of an expression) when it
  1022. wasn't initialized first (i.e. appeared in the left-hand side of an
  1023. assigment)
  1024. \item [Error: identifier idents no member arg1]
  1025. When using the extended syntax of \var{new}, you must specify the constructor
  1026. method of the class you are trying to create. The procedure you specified
  1027. does not exist.
  1028. \item [Found declaration: arg1]
  1029. You get this when you use the \var{-vb} switch. In case an overloaded
  1030. procedure is not found, then all candidate overloaded procedures are
  1031. listed, with their parameter lists.
  1032. \item [Error: Data segment too large (max. 2GB)]
  1033. You get this when you declare an array whose size exceeds the 2GB limit.
  1034. \end{description}
  1035. \section{Code generator messages}
  1036. This section lists all messages that can be displayed if the code
  1037. generator encounters an error condition.
  1038. \begin{description}
  1039. \item [Error: BREAK not allowed]
  1040. You're trying to use \var{break} outside a loop construction.
  1041. \item [Error: CONTINUE not allowed]
  1042. You're trying to use \var{continue} outside a loop construction.
  1043. \item [Error: Expression too complicated - FPU stack overflow]
  1044. Your expression is too long for the compiler. You should try dividing the
  1045. construct over multiple assignments.
  1046. \item [Error: Illegal expression]
  1047. This can occur under many circumstances. Mostly when trying to evaluate
  1048. constant expressions.
  1049. \item [Error: Invalid integer expression]
  1050. You made an expression which isn't an integer, and the compiler expects the
  1051. result to be an integer.
  1052. \item [Error: Illegal qualifier]
  1053. One of the following is happening :
  1054. \begin{itemize}
  1055. \item You're trying to access a field of a variable that is not a record.
  1056. \item You're indexing a variable that is not an array.
  1057. \item You're dereferencing a variable that is not a pointer.
  1058. \end{itemize}
  1059. \item [Error: High range limit < low range limit]
  1060. You are declaring a subrange, and the lower limit is higher than the high
  1061. limit of the range.
  1062. \item [Error: Illegal counter variable]
  1063. The type of a \var{for} loop variable must be an ordinal type.
  1064. Loop variables cannot be reals or strings.
  1065. \item [Error: Can't determine which overloaded function to call]
  1066. You're calling overloaded functions with a parameter that doesn't correspond
  1067. to any of the declared function parameter lists. e.g. when you have declared
  1068. a function with parameters \var{word} and \var{longint}, and then you call
  1069. it with a parameter which is of type \var{integer}.
  1070. \item [Error: Parameter list size exceeds 65535 bytes]
  1071. The I386 processor limits the parameter list to 65535 bytes (the \var{RET}
  1072. instruction causes this)
  1073. \item [Error: Illegal type conversion]
  1074. When doing a type-cast, you must take care that the sizes of the variable and
  1075. the destination type are the same.
  1076. \item [Conversion between ordinals and pointers is not portable across platforms]
  1077. If you typecast a pointer to a longint, this code will not compile
  1078. on a machine using 64bit for pointer storage.
  1079. \item [Error: File types must be var parameters]
  1080. You cannot specify files as value parameters, i.e. they must always be
  1081. declared \var{var} parameters.
  1082. \item [Error: The use of a far pointer isn't allowed there]
  1083. Free Pascal doesn't support far pointers, so you cannot take the address of
  1084. an expression which has a far reference as a result. The \var{mem} construct
  1085. has a far reference as a result, so the following code will produce this
  1086. error:
  1087. \begin{verbatim}
  1088. var p : pointer;
  1089. ...
  1090. p:=@mem[a000:000];
  1091. \end{verbatim}
  1092. \item [Error: illegal call by reference parameters]
  1093. You are trying to pass a constant or an expression to a procedure that
  1094. requires a \var{var} parameter. Only variables can be passed as a \var{var}
  1095. parameter.
  1096. \item [Error: EXPORT declared functions can't be called]
  1097. No longer in use.
  1098. \item [Warning: Possible illegal call of constructor or destructor (doesn't match to this context)]
  1099. No longer in use.
  1100. \item [Note: Inefficient code]
  1101. You construction seems dubious to the compiler.
  1102. \item [Warning: unreachable code]
  1103. You specified a loop which will never be executed. Example:
  1104. \begin{verbatim}
  1105. while false do
  1106. begin
  1107. {.. code ...}
  1108. end;
  1109. \end{verbatim}
  1110. \item [Error: procedure call with stackframe ESP/SP]
  1111. The compiler encountered a procedure or function call inside a
  1112. procedure that uses a \var{ESP/SP} stackframe. Normally, when a call is
  1113. done the procedure needs a \var{EBP} stackframe.
  1114. \item [Error: Abstract methods can't be called directly]
  1115. You cannot call an abstract method directy, instead you must call a
  1116. overriding child method, because an abstract method isn't implemented.
  1117. \item [Fatal: Internal Error in getfloatreg(), allocation failure]
  1118. An internal error occurred in the compiler; If you encounter such an error,
  1119. please contact the developers and try to provide an exact description of
  1120. the circumstances in which the error occurs.
  1121. \item [Fatal: Unknown float type]
  1122. The compiler cannot determine the kind of float that occurs in an expression.
  1123. \item [Fatal: SecondVecn() base defined twice]
  1124. An internal error occurred in the compiler; If you encounter such an error,
  1125. please contact the developers and try to provide an exact description of
  1126. the circumstances in which the error occurs.
  1127. \item [Fatal: Extended cg68k not supported]
  1128. The \var{extended} type is not supported on the m68k platform.
  1129. \item [Fatal: 32-bit unsigned not supported in MC68000 mode]
  1130. The cardinal is not supported on the m68k platform.
  1131. \item [Fatal: Internal Error in secondinline()]
  1132. An internal error occurred in the compiler; If you encounter such an error,
  1133. please contact the developers and try to provide an exact description of
  1134. the circumstances in which the error occurs.
  1135. \item [Register arg1 weight arg2 arg3]
  1136. Debugging message. Shown when the compiler considers a variable for
  1137. keeping in the registers.
  1138. \item [Error: Stack limit excedeed in local routine]
  1139. Your code requires a too big stack. Some operating systems pose limits
  1140. on the stack size. You should use less variables or try ro put large
  1141. variables on the heap.
  1142. \item [Stack frame is omitted]
  1143. Some procedure/functions do not need a complete stack-frame, so it is omitted.
  1144. This message will be displayed when the {-vd} switch is used.
  1145. \item [Warning: Range check for 64 bit integers is not supported on this target]
  1146. 64 bit range check is not yet implemented for 32 bit processors.
  1147. \item [Error: Object or class methods can't be inline.]
  1148. You cannot have inlined object methods.
  1149. \item [Error: Procvar calls can't be inline.]
  1150. A procedure with a procedural variable call cannot be inlined.
  1151. \item [Error: No code for inline procedure stored]
  1152. The compiler couldn't store code for the inline procedure.
  1153. \item [Error: Direct call of interrupt procedure arg1 is not possible]
  1154. You can not call an interrupt procedure directly from FPC code
  1155. \item [Error: Element zero of an ansi/wide- or longstring can't be accessed, use (set)length instead]
  1156. You should use \var{setlength} to set the length of an ansi/wide/longstring
  1157. and \var{length} to get the length of such kinf of string
  1158. \item [Error: Include and exclude not implemented in this case]
  1159. \var{include} and \var{exclude} are only partially
  1160. implemented for \var{i386} processors
  1161. and not at all for \var{m68k} processors.
  1162. \item [Error: Constructors or destructors can not be called inside a 'with' clause]
  1163. Inside a \var{With} clause you cannot call a constructor or destructor for the
  1164. object you have in the \var{with} clause.
  1165. \item [Error: Cannot call message handler method directly]
  1166. A message method handler method can't be called directly if it contains an
  1167. explicit self argument
  1168. \item [Error: Jump in or outside of an exception block]
  1169. It isn't allowed to jump in or outside of an exception block like \var{try..finally..end;}:
  1170. \begin{verbatim}
  1171. label 1;
  1172. ...
  1173. try
  1174. if not(final) then
  1175. goto 1; // this line will cause an error
  1176. finally
  1177. ...
  1178. end;
  1179. 1:
  1180. ...
  1181. \end{verbatim}
  1182. \item [Error: Control flow statements aren't allowed in a finally block]
  1183. It isn't allowed to use the control flow statements \var{break},
  1184. \var{continue} and \var{exit}
  1185. inside a finally statement. The following example shows the problem:
  1186. \begin{verbatim}
  1187. ...
  1188. try
  1189. p;
  1190. finally
  1191. ...
  1192. exit; // This exit ISN'T allowed
  1193. end;
  1194. ...
  1195. \end{verbatim}
  1196. If the procedure \var{p} raises an exception the finally block is
  1197. executed. If the execution reaches the exit, it's unclear what to do:
  1198. exiting the procedure or searching for another exception handler
  1199. \end{description}
  1200. \section{Errors of assembling/linking stage}
  1201. This section lists errors that occur when the compiler is processing the
  1202. command line or handling the configuration files.
  1203. \begin{description}
  1204. \item [Warning: Source operating system redefined]
  1205. \item [Info: Assembling (pipe) arg1]
  1206. \item [Error: Can't create assember file: arg1]
  1207. The mentioned file can't be create. Check if you've
  1208. permission to create this file
  1209. \item [Error: Can't create object file: arg1]
  1210. The mentioned file can't be create. Check if you've
  1211. permission to create this file
  1212. \item [Error: Can't create archive file: arg1]
  1213. The mentioned file can't be create. Check if you've
  1214. permission to create this file
  1215. \item [Warning: Assembler arg1 not found, switching to external assembling]
  1216. \item [Using assembler: arg1]
  1217. \item [Warning: Error while assembling exitcode arg1]
  1218. \item [Warning: Can't call the assembler, error arg1 switching to external assembling]
  1219. \item [Info: Assembling arg1]
  1220. \item [Info: Assembling smartlink arg1]
  1221. \item [Warning: Object arg1 not found, Linking may fail !]
  1222. \item [Warning: Library arg1 not found, Linking may fail !]
  1223. \item [Warning: Error while linking]
  1224. \item [Warning: Can't call the linker, switching to external linking]
  1225. \item [Info: Linking arg1]
  1226. \item [Warning: Util arg1 not found, switching to external linking]
  1227. \item [Using util arg1]
  1228. \item [Error: Creation of Executables not supported]
  1229. \item [Error: Creation of Dynamic/Shared Libraries not supported]
  1230. \item [Info: Closing script arg1]
  1231. \item [Warning: resource compiler not found, switching to external mode]
  1232. \item [Info: Compiling resource arg1]
  1233. \end{description}
  1234. \section{Unit loading messages.}
  1235. This section lists all messages that can occur when the compiler is
  1236. loading a unit from disk into memory. Many of these mesages are
  1237. informational messages.
  1238. \begin{description}
  1239. \item [Unitsearch: arg1]
  1240. When you use the \var{-vt}, the compiler tells you where it tries to find
  1241. unit files.
  1242. \item [PPU Loading arg1]
  1243. When the \var{-vt} switch is used, the compiler tells you
  1244. what units it loads.
  1245. \item [PPU Name: arg1]
  1246. When you use the \var{-vu} flag, the unit name is shown.
  1247. \item [PPU Flags: arg1]
  1248. When you use the \var{-vu} flag, the unit flags are shown.
  1249. \item [PPU Crc: arg1]
  1250. When you use the \var{-vu} flag, the unit CRC check is shown.
  1251. \item [PPU Time: arg1]
  1252. When you use the \var{-vu} flag, the time the unit was compiled is shown.
  1253. \item [PPU File too short]
  1254. The ppufile is too short, not all declarations are present.
  1255. \item [PPU Invalid Header (no PPU at the begin)]
  1256. A unit file contains as the first three bytes the ascii codes of \var{PPU}
  1257. \item [PPU Invalid Version arg1]
  1258. This unit file was compiled with a different version of the compiler, and
  1259. cannot be read.
  1260. \item [PPU is compiled for an other processor]
  1261. This unit file was compiled for a different processor type, and
  1262. cannot be read
  1263. \item [PPU is compiled for an other target]
  1264. This unit file was compiled for a different processor type, and
  1265. cannot be read
  1266. \item [PPU Source: arg1]
  1267. When you use the \var{-vu} flag, the unit CRC check is shown.
  1268. \item [Writing arg1]
  1269. When you specify the \var{-vu} switch, the compiler will tell you where it
  1270. writes the unit file.
  1271. \item [Fatal: Can't Write PPU-File]
  1272. An error occurred when writing the unit file.
  1273. \item [Fatal: Error reading PPU-File]
  1274. This means that the unit file was corrupted, and contains invalid
  1275. information. Recompilation will be necessary.
  1276. \item [Fatal: unexpected end of PPU-File]
  1277. Unexpected end of file.
  1278. \item [Fatal: Invalid PPU-File entry: arg1]
  1279. The unit the compiler is trying to read is corrupted, or generated with a
  1280. newer version of the compiler.
  1281. \item [Fatal: PPU Dbx count problem]
  1282. There is an inconsistency in the debugging information of the unit.
  1283. \item [Error: Illegal unit name: arg1]
  1284. The name of the unit doesn't match the file name.
  1285. \item [Fatal: Too much units]
  1286. \fpc has a limit of 1024 units in a program. You can change this behavior
  1287. by changing the \var{maxunits} constant in the \file{files.pas} file of the
  1288. compiler, and recompiling the compiler.
  1289. \item [Fatal: Circular unit reference between arg1 and arg2]
  1290. Two units are using each other in the interface part. This is only allowed
  1291. in the \var{implementation} part. At least one unit must contain the other one
  1292. in the \var{implementation} section.
  1293. \item [Fatal: Can't compile unit arg1, no sources available]
  1294. A unit was found that needs to be recompiled, but no sources are
  1295. available.
  1296. \item [Fatal: Can't find unit arg1]
  1297. You tried to use a unit of which the PPU file isn't found by the
  1298. compiler. Check your config files for the unit pathes
  1299. \item [Warning: Unit arg1 was not found but arg2 exists]
  1300. \item [Fatal: Unit arg1 searched but arg2 found]
  1301. Dos truncation of 8 letters for unit PPU files
  1302. may lead to problems when unit name is longer than 8 letters.
  1303. \item [Warning: Compiling the system unit requires the -Us switch]
  1304. When recompiling the system unit (it needs special treatment), the
  1305. \var{-Us} must be specified.
  1306. \item [Fatal: There were arg1 errors compiling module, stopping]
  1307. When the compiler encounters a fatal error or too many errors in a module
  1308. then it stops with this message.
  1309. \item [Load from arg1 (arg2) unit arg3]
  1310. When you use the \var{-vu} flag, which unit is loaded from which unit is
  1311. shown.
  1312. \item [Recompiling arg1, checksum changed for arg2]
  1313. \item [Recompiling arg1, source found only]
  1314. When you use the \var{-vu} flag, these messages tell you why the current
  1315. unit is recompiled.
  1316. \item [Recompiling unit, static lib is older than ppufile]
  1317. When you use the \var{-vu} flag, the compiler warns if the static library
  1318. of the unit are older than the unit file itself.
  1319. \item [Recompiling unit, shared lib is older than ppufile]
  1320. When you use the \var{-vu} flag, the compiler warns if the shared library
  1321. of the unit are older than the unit file itself.
  1322. \item [Recompiling unit, obj and asm are older than ppufile]
  1323. When you use the \var{-vu} flag, the compiler warns if the assembler or
  1324. object file of the unit are older than the unit file itself.
  1325. \item [Recompiling unit, obj is older than asm]
  1326. When you use the \var{-vu} flag, the compiler warns if the assembler
  1327. file of the unit is older than the object file of the unit.
  1328. \item [Parsing interface of arg1]
  1329. When you use the \var{-vu} flag, the compiler warns that it starts
  1330. parsing the interface part of the unit
  1331. \item [Parsing implementation of arg1]
  1332. When you use the \var{-vu} flag, the compiler warns that it starts
  1333. parsing the implementation part of the unit
  1334. \item [Second load for unit arg1]
  1335. When you use the \var{-vu} flag, the compiler warns that it starts
  1336. recompiling a unit for the second time. This can happend with interdepend
  1337. units.
  1338. \item [PPU Check file arg1 time arg2]
  1339. When you use the \var{-vu} flag, the compiler show the filename and
  1340. date and time of the file which a recompile depends on
  1341. \end{description}
  1342. \section{Command-line handling errors}
  1343. This section lists errors that occur when the compiler is processing the
  1344. command line or handling the configuration files.
  1345. \begin{description}
  1346. \item [Warning: Only one source file supported]
  1347. You can specify only one source file on the command line. The first
  1348. one will be compiled, others will be ignored. This may indicate that
  1349. you forgot a \var{'-'} sign.
  1350. \item [Warning: DEF file can be created only for OS/2]
  1351. This option can only be specified when you're compiling for OS/2
  1352. \item [Error: nested response files are not supported]
  1353. you cannot nest response files with the \var{@file} command-line option.
  1354. \item [Fatal: No source file name in command line]
  1355. The compiler expects a source file name on the command line.
  1356. \item [Note: No option inside arg1 config file]
  1357. The compiler didn't find any option in that config file.
  1358. \item [Error: Illegal parameter: arg1]
  1359. You specified an unknown option.
  1360. \item [Hint: -? writes help pages]
  1361. When an unknown option is given, this message is diplayed.
  1362. \item [Fatal: Too many config files nested]
  1363. You can only nest up to 16 config files.
  1364. \item [Fatal: Unable to open file arg1]
  1365. The option file cannot be found.
  1366. \item [Note: Reading further options from arg1]
  1367. Displayed when you have notes turned on, and the compiler switches
  1368. to another options file.
  1369. \item [Warning: Target is already set to: arg1]
  1370. Displayed if more than one \var{-T} option is specified.
  1371. \item [Warning: Shared libs not supported on DOS platform, reverting to static]
  1372. If you specify \var{-CD} for the \dos platform, this message is displayed.
  1373. The compiler supports only static libraries under \dos
  1374. \item [Fatal: too many IF(N)DEFs]
  1375. the \var{\#IF(N)DEF} statements in the options file are not balanced with
  1376. the \var{\#ENDIF} statements.
  1377. \item [Fatal: too many ENDIFs]
  1378. the \var{\#IF(N)DEF} statements in the options file are not balanced with
  1379. the \var{\#ENDIF} statements.
  1380. \item [Fatal: open conditional at the end of the file]
  1381. the \var{\#IF(N)DEF} statements in the options file are not balanced with
  1382. the \var{\#ENDIF} statements.
  1383. \item [Warning: Debug information generation is not supported by this executable]
  1384. It is possible to have a compiler executable that doesn't support
  1385. the generation of debugging info. If you use such an executable with the
  1386. \var{-g} switch, this warning will be displayed.
  1387. \item [Hint: Try recompiling with -dGDB]
  1388. It is possible to have a compiler executable that doesn't support
  1389. the generation of debugging info. If you use such an executable with the
  1390. \var{-g} switch, this warning will be displayed.
  1391. \item [Error: You are using the obsolete switch arg1]
  1392. this warns you when you use a switch that is not needed/supported anymore.
  1393. It is recommended that you remove the switch to overcome problems in the
  1394. future, when the switch meaning may change.
  1395. \item [Error: You are using the obsolete switch arg1, please use arg2]
  1396. this warns you when you use a switch that is not supported anymore. You
  1397. must now use the second switch instead.
  1398. It is recommended that you change the switch to overcome problems in the
  1399. future, when the switch meaning may change.
  1400. \item [Note: Switching assembler to default source writing assembler]
  1401. this notifies you that the assembler has been changed because you used the
  1402. -a switch which can't be used with a binary assembler writer.
  1403. \item [Warning: Assembler output selected "arg1" is not compatible with "arg2"]
  1404. \item [Warning: "arg1" assembler use forced]
  1405. The assembler output selected can not generate
  1406. object files with the correct format. Therefore, the
  1407. default assembler for this target is used instead.
  1408. \end{description}