messages.tex 75 KB

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