64
63
% operating system is.
65
64
general_t_exepath=01003_T_Using executable path: $1
66
65
% When the \var{-vt} switch is used, this line tells you where the compiler
67
% looks for it's binaries.
66
% looks for its binaries.
68
67
general_t_unitpath=01004_T_Using unit path: $1
69
68
% When the \var{-vt} switch is used, this line tells you where the compiler
70
69
% looks for compiled units. You can set this path with the \var{-Fu}
71
70
general_t_includepath=01005_T_Using include path: $1
72
71
% When the \var{-vt} switch is used, this line tells you where the compiler
73
% looks for it's include files (files used in \var{\{\$I xxx\}} statements).
72
% looks for its include files (files used in \var{\{\$I xxx\}} statements).
74
73
% You can set this path with the \var{-I} option.
75
74
general_t_librarypath=01006_T_Using library path: $1
76
75
% When the \var{-vt} switch is used, this line tells you where the compiler
167
167
scan_f_cannot_open_includefile=02013_F_Can't open include file "$1"
168
168
% \fpc cannot find the source file you specified in a \var{\{\$include ..\}}
170
scan_w_only_pack_records=02015_W_Records fields can be aligned to 1,2,4,8,16 or 32 bytes only
171
% You are specifying the \var{\{\$PACKRECORDS n\} } with an illegal value for
172
% \var{n}. Only 1, 2, 4, 8, 16 and 32 are valid in this case.
173
scan_w_only_pack_enum=02016_W_Enumerated can be saved in 1,2 or 4 bytes only
170
scan_e_illegal_pack_records=02015_E_Illegal record alignment specifier "$1"
171
% You are specifying the \var{\{\$PACKRECORDS n\} } or \var{\{\$ALIGN n\} }
172
% with an illegal value for \var{n}. For \$PACKRECORDS valid alignments are 1, 2, 4, 8, 16, 32, C,
173
% NORMAL, DEFAULT, and for \$ALIGN valid alignment are 1, 2, 4, 8, 16, 32, ON,
174
% OFF. Under mode MacPas \$ALIGN also supports MAC68K, POWER and RESET.
175
scan_e_illegal_pack_enum=02016_E_Illegal enum minimum-size specifier "$1"
174
176
% You are specifying the \var{\{\$PACKENUM n\}} with an illegal value for
175
% \var{n}. Only 1,2 or 4 are valid in this case.
177
% \var{n}. Only 1,2,4, NORMAL or DEFAULT are valid here.
176
178
scan_e_endif_expected=02017_E_$ENDIF expected for $1 $2 defined in $3 line $4
177
179
% Your conditional compilation statements are unbalanced.
178
180
scan_e_preproc_syntax_error=02018_E_Syntax error while parsing a conditional compiling expression
307
309
scan_e_mode_switch_not_allowed=02067_E_Mode switch "$1" not allowed here
308
310
% A mode switch has already been encountered, or, in case of option -Mmacpas,
309
311
% a mode switch occur after UNIT.
310
scan_e_error_macro_undefined=02068_E_Compile time variable "$1" is not defined.
311
% Thus the conditional compile time expression cannot be evaluated.
312
scan_e_error_macro_undefined=02068_E_Compile time variable or macro "$1" is not defined.
313
% Thus the conditional compile time expression cannot be evaluated. Only in mode MacPas.
314
scan_e_utf8_bigger_than_65535=02069_E_UTF-8 code greater than 65535 found
315
% \fpc handles utf-8 strings internally as widestrings e.g. the char codes are limited to 65535
316
scan_e_utf8_malformed=02070_E_Malformed UTF-8 string
317
% The given string isn't a valid UTF-8 string
318
scan_c_switching_to_utf8=02071_C_UTF-8 signature found, using UTF-8 encoding
319
% The compiler found an UTF-8 encoding signature (\$ef, \$bb, \$bf) at the beginning of a file,
320
% so it interprets it as an UTF-8 file
321
scan_e_compile_time_typeerror=02072_E_Compile time expression: Wanted $1 but got $2 at $3
322
% Type check of a compile time expression failed.
323
scan_n_app_type_not_support=02073_N_APPTYPE is not supported by the target OS
324
% The \var{\{\$APPTYPE\}} directive is supported by certain operating systems only.
312
325
% \end{description}
515
528
parser_e_cant_access_protected_member=03062_E_Cannot access a protected field of an object here
516
529
% Fields that are declared in a \var{protected} section of an object or class
517
% declaration cannot be accessed outside the module wher the object is
530
% declaration cannot be accessed outside the module where the object is
518
531
% defined, or outside descendent object methods.
519
532
parser_e_cant_access_private_member=03063_E_Cannot access a private field of an object here
520
533
% Fields that are declared in a \var{private} section of an object or class
521
534
% declaration cannot be accessed outside the module where the class is
523
parser_e_overridden_methods_not_same_ret=03066_E_overridden methods must have the same return type: "$2" is overriden by "$1" which has another return type
536
parser_e_overridden_methods_not_same_ret=03066_E_Overridden methods must have the same return type: "$2" is overriden by "$1" which has another return type
524
537
% If you declare overridden methods in a class definition, they must
525
538
% have the same return type.
526
539
parser_e_dont_nest_export=03067_E_EXPORT declared functions can't be nested
527
540
% You cannot declare a function or procedure within a function or procedure
528
541
% that was declared as an export procedure.
529
parser_e_methods_dont_be_export=03068_E_methods can't be EXPORTed
542
parser_e_methods_dont_be_export=03068_E_Methods can't be EXPORTed
530
543
% You cannot declare a procedure that is a method for an object as
531
544
% \var{export}ed.
532
parser_e_call_by_ref_without_typeconv=03069_E_call by var parameters have to match exactly: Got "$1" expected "$2"
545
parser_e_call_by_ref_without_typeconv=03069_E_Call by var parameters have to match exactly: Got "$1" expected "$2"
533
546
% When calling a function declared with \var{var} parameters, the variables in
534
547
% the function call must be of exactly the same type. There is no automatic
535
548
% type conversion.
745
758
parser_e_cant_publish_that=03133_E_Symbol can't be published, can be only a class
746
759
% Only class type variables can be in a \var{published} section of a class
747
760
% if they are not declared as a property.
748
parser_e_cant_publish_that_property=03134_E_That kind of property can't be published
761
parser_e_cant_publish_that_property=03134_E_This kind of property can't be published
749
762
% Properties in a \var{published} section cannot be array properties.
750
763
% they must be moved to public sections. Properties in a \var{published}
751
764
% section must be an ordinal type, a real type, strings or sets.
752
765
parser_e_empty_import_name=03136_E_An import name is required
753
766
% Some targets need a name for the imported procedure or a \var{cdecl} specifier
754
767
parser_e_division_by_zero=03138_E_Division by zero
755
% There is a divsion by zero encounted
768
% There is a division by zero encounted
756
769
parser_e_invalid_float_operation=03139_E_Invalid floating point operation
757
770
% An operation on two real type values produced an overflow or a division
842
858
parser_e_no_export_of_variables_for_target=03164_E_Exporting of variables is not supported under $1
843
859
% Exporting of variables is not supported on this target.
844
860
parser_e_improper_guid_syntax=03165_E_Improper GUID syntax
861
% The GUID indication does not have the proper syntax. It should be of the form
863
% {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}
865
% Where each \var{X} represents a hexadecimal digit.
845
866
parser_w_interface_mapping_notfound=03168_W_Procedure named "$1" not found that is suitable for implementing the $2.$3
867
% The compiler cannot find a suitable procedure which implements the given method of an interface.
868
% A procedure with the same name is found, but the arguments do not match.
846
869
parser_e_interface_id_expected=03169_E_interface identifier expected
847
870
% This happens when the compiler scans a \var{class} declaration that contains
848
871
% \var{interface} function name mapping code like this:
900
923
% that of the method (which is known at compile time) and that of the object or
901
924
% class instance it operates on (which can not be known at compile time).
902
925
parser_e_default_value_only_one_para=03184_E_Default value can only be assigned to one parameter
926
% It is not possible to specify a default value for several parameters at once.
927
% The following is invalid:
929
% Procedure MyProcedure (A,B : Integer = 0);
931
% Instead, this should be declared as
933
% Procedure MyProcedure (A : Integer = 0; B : Integer = 0);
903
935
parser_e_default_value_expected_for_para=03185_E_Default parameter required for "$1"
936
% The specified parameter requires a default value.
904
937
parser_w_unsupported_feature=03186_W_Use of unsupported feature!
905
938
% You're trying to force the compiler into doing something it cannot do yet.
906
939
parser_h_c_arrays_are_references=03187_H_C arrays are passed by reference
982
1015
% You are declaring a subrange, and the lower limit is higher than the high
983
1016
% limit of the range.
984
1017
parser_e_macpas_exit_wrong_param=03207_E_Exit's parameter must be the name of the procedure it is used in
985
% Non local exit is not allowed. This error occur only in mode MacPas.
1018
% Non local exit is not allowed. This error occurs only in mode MacPas.
986
1019
parser_e_illegal_assignment_to_count_var=03208_E_Illegal assignment to for-loop variable "$1"
987
1020
% The type of a \var{for} loop variable must be an ordinal type.
988
% Loop variables cannot be reals or strings.
1021
% Loop variables cannot be reals or strings. You can also not assign values to
1022
% loop variables inside the loop (except in Delphi and TP modes). Use a while or
1023
% repeat loop instead if you need to do something like that, since those
1024
% constructs were built for that.
989
1025
parser_e_no_local_var_external=03209_E_Can't declare local variable as EXTERNAL
990
1026
% Declaring local variables as external is not allowed. Only global variables can reference
991
1027
% to external variables.
1001
1037
% because all methods of an interfaces must be public.
1002
1038
parser_e_arithmetic_operation_overflow=03213_E_Overflow in arithmetic operation
1003
1039
% An operation on two integers values produced an overflow
1040
parser_e_protected_or_private_expected=03214_E_Protected or private expected
1041
% \var{strict} can be only used together with \var{protected} or \var{private}.
1042
parser_e_illegal_slice=03215_E_SLICE can't be used outside of parameter list
1043
% \var{slice} can be used only for arguments accepting an open array parameter
1044
parser_e_dispinterface_cant_have_parent=03216_E_A DISPINTERFACE can't have a parent class
1045
% A DISPINMTERFACE is a special type of interface which can't have a parent class
1046
parser_e_dispinterface_needs_a_guid=03217_E_A DISPINTERFACE needs a guid
1047
% A DISPINMTERFACE always needs an interface identification
1048
parser_w_overridden_methods_not_same_ret=03218_W_Overridden methods must have a related return type. This code may crash, it depends on a Delphi parser bug ("$2" is overridden by "$1" which has another return type)
1049
% If you declare overridden methods in a class definition, they must
1050
% have the same return type. Some versions of Delphi allow you to change the
1051
% return type of interface methods, and even to change procedures into
1052
% functions, but the resulting code may crash depending on the types used
1053
% and the way the methods are called.
1004
1054
% \end{description}
1006
1056
# Type Checking
1144
1194
% If you are accessing a variable using an index '[<x>]' then
1145
1195
% the type must be an array. In FPC mode also a pointer is allowed.
1146
1196
type_e_interface_type_expected=04034_E_interface type expected, but got "$1"
1197
% The compiler expected to encounter an interface type name, but got something else.
1198
% The following code would provoke this error:
1201
% TMyStream = Class(TStream,Integer)
1147
1203
type_w_mixed_signed_unsigned=04035_W_Mixing signed expressions and longwords gives a 64bit result
1148
1204
% If you divide (or calculate the modulus of) a signed expression by a longword (or vice versa),
1149
1205
% or if you have overflow and/or range checking turned on and use an arithmetic
1150
1206
% expression (+, -, *, div, mod) in which both signed numbers and longwords appear,
1151
1207
% then everything has to be evaluated in 64bit which is slower than normal
1152
1208
% 32bit arithmetic. You can avoid this by typecasting one operand so it
1153
% matches the resulttype of the other one.
1209
% matches the result type of the other one.
1154
1210
type_w_mixed_signed_unsigned2=04036_W_Mixing signed expressions and cardinals here may cause a range check error
1155
1211
% If you use a binary operator (and, or, xor) and one of
1156
1212
% the operands is a longword while the other one is a signed expression, then,
1157
1213
% if range checking is turned on, you may get a range check error because in
1158
1214
% such a case both operands are converted to longword before the operation is
1159
1215
% carried out. You can avoid this by typecasting one operand so it
1160
% matches the resulttype of the other one.
1216
% matches the result type of the other one.
1161
1217
type_e_typecast_wrong_size_for_assignment=04037_E_Typecast has different size ($1 -> $2) in assignment
1162
1218
% Type casting to a type with a different size is not allowed when the variable is
1163
1219
% used for assigning.
1169
1225
% \end{verbatim}
1170
1226
% you cannot use it as index of an array.
1171
1227
type_e_classes_not_related=04039_E_Class or Object types "$1" and "$2" are not related
1172
% There is a typecast from one class or object to another while the class/object
1173
% are not related. This will probably lead to errors
1228
% There is a typecast from one class or object to another while the class/object
1229
% are not related. This will probably lead to errors
1174
1230
type_w_classes_not_related=04040_W_Class types "$1" and "$2" are not related
1175
% There is a typecast from one class or object to another while the class/object
1176
% are not related. This will probably lead to errors
1231
% There is a typecast from one class or object to another while the class/object
1232
% are not related. This will probably lead to errors
1177
1233
type_e_class_or_interface_type_expected=04041_E_Class or interface type expected, but got "$1"
1234
% The compiler expected a class or interface name, but got another type or identifier.
1178
1235
type_e_type_is_not_completly_defined=04042_E_Type "$1" is not completely defined
1236
% This error occurs when a type is not complete: i.e. a pointer type which points to
1237
% an undefined type.
1179
1238
type_w_string_too_long=04043_W_String literal has more characters than short string length
1180
1239
% The size of the constant string, which is assigned to a shortstring,
1181
1240
% is longer than the maximum size of the shortstring
1230
1289
type_e_illegal_count_var=04058_E_Illegal counter variable
1231
1290
% The type of a \var{for} loop variable must be an ordinal type.
1232
1291
% Loop variables cannot be reals or strings.
1292
type_w_double_c_varargs=04059_W_Converting constant real value to double for C variable argument, add explicit typecast to prevent this.
1293
% In C, constant real values are double by default. For this reason, if you
1294
% pass a constant real value to a variable argument part of a C function, FPC
1295
% by default converts this constant to double as well. If you want to prevent
1296
% this from happening, add an explicit typecast around the constant.
1297
type_e_class_or_cominterface_type_expected=04060_E_Class or COM interface type expected, but got "$1"
1298
% Some operators like the AS operator are only appliable to classes or COM interfaces.
1233
1299
% \end{description}
1237
# 05055 is the last used one
1303
# 05060 is the last used one
1239
1305
% \section{Symbol handling}
1240
1306
% This section lists all the messages that concern the handling of symbols.
1378
1447
% be used (i.e. appears in the right-hand-side of an expression) when it
1379
1448
% was not initialized first (i.e. appeared in the left-hand side of an
1450
sym_w_function_result_uninitialized=05059_W_Function result variable does not seem to initialized
1451
% This message is displayed if the compiler thinks that the function result
1452
% variable will be used (i.e. appears in the right-hand-side of an expression)
1453
% before it is initialized (i.e. appeared in the left-hand side of an
1455
sym_h_function_result_uninitialized=05060_H_Function result variable does not seem to be initialized
1456
% This message is displayed if the compiler thinks that the function result
1457
% variable will be used (i.e. appears in the right-hand-side of an expression)
1458
% before it is initialized (i.e. appeared in the left-hand side of an
1460
sym_w_identifier_only_read=05061_W_Variable "$1" read but nowhere assigned
1461
% You have read the value of a variable, but nowhere assigned a value to
1381
1464
% \end{description}
1383
1466
# Codegenerator
1482
1565
% This indicates that you are declaring more than 64K of parameters, which
1483
1566
% might not be supported on other processor targets.
1484
1567
cg_w_localsize_too_big=06042_W_Local variable size exceed limit for certain cpu's
1485
% This indicates that you are declaring more than 32K of lcoal variables, which
1568
% This indicates that you are declaring more than 32K of local variables, which
1486
1569
% might not be supported on other processor targets.
1487
1570
cg_e_localsize_too_big=06043_E_Local variables size exceeds supported limit
1488
% This indicates that you are declaring more than 32K of lcoal variables, which
1571
% This indicates that you are declaring more than 32K of local variables, which
1489
1572
% is not supported by this processor.
1490
1573
cg_e_break_not_allowed=06044_E_BREAK not allowed
1491
1574
% You're trying to use \var{break} outside a loop construction.
1492
1575
cg_e_continue_not_allowed=06045_E_CONTINUE not allowed
1493
1576
% You're trying to use \var{continue} outside a loop construction.
1577
cg_f_unknown_compiler=06046_F_Unknown compilerproc "$1". Check if you use the correct run time library.
1578
% The compiler expects that the runtime library contains some subrountines. If you see this error
1579
% and you didn't mess with the runtime library, it's very likely that the runtime library
1580
% you're using doesn't match the used compiler. If you changed the runtime library this error means
1581
% that you removed a subroutine which the compiler needs for internal use.
1494
1582
% \end{description}
1766
1856
% The mentioned file can't be created. Check if you've
1767
1857
% access permissions to create this file
1768
1858
exec_e_assembler_not_found=09005_E_Assembler $1 not found, switching to external assembling
1859
% The assembler program was not found. The compiler will produce a script that
1860
% can be used to assemble and link the program.
1769
1861
exec_t_using_assembler=09006_T_Using assembler: $1
1862
% Information message saying which assembler is being used.
1770
1863
exec_e_error_while_assembling=09007_E_Error while assembling exitcode $1
1771
1864
% There was an error while assembling the file using an external assembler.
1772
1865
% Consult the documentation of the assembler tool to find out more information
1773
1866
% on this error.
1774
1867
exec_e_cant_call_assembler=09008_E_Can't call the assembler, error $1 switching to external assembling
1868
% An error occurred when calling an external assembler, The compiler will produce a script that
1869
% can be used to assemble and link the program.
1775
1870
exec_i_assembling=09009_I_Assembling $1
1871
% An informational message stating which file is being assembled.
1776
1872
exec_i_assembling_smart=09010_I_Assembling with smartlinking $1
1873
% An informational message stating which file is being assembled using smartlinking.
1777
1874
exec_w_objfile_not_found=09011_W_Object $1 not found, Linking may fail !
1778
1875
% One of the object file is missing, and linking will probably fail.
1779
1876
% Check your paths.
1783
1880
exec_e_error_while_linking=09013_E_Error while linking
1784
1881
% Generic error while linking.
1785
1882
exec_e_cant_call_linker=09014_E_Can't call the linker, switching to external linking
1883
% An error occurred when calling an external linker, The compiler will produce a script that
1884
% can be used to assemble and link the program.
1786
1885
exec_i_linking=09015_I_Linking $1
1886
% An informational message, showing which program or library is being linked.
1787
1887
exec_e_util_not_found=09016_E_Util $1 not found, switching to external linking
1888
% An external tool was not found, the compiler will produce a script that
1889
% can be used to assemble and link or postprocess the program.
1788
1890
exec_t_using_util=09017_T_Using util $1
1891
% An informational message, showing which external program (usually a postprocessor) is being used.
1789
1892
exec_e_exe_not_supported=09018_E_Creation of Executables not supported
1893
% Creating executable programs is not supported for this platform, because it was
1894
% not yet implemented in the compiler.
1790
1895
exec_e_dll_not_supported=09019_E_Creation of Dynamic/Shared Libraries not supported
1896
% Creating dynamically loadable libraries is not supported for this platform, because it was
1897
% not yet implemented in the compiler.
1791
1898
exec_i_closing_script=09020_I_Closing script $1
1899
% Informational message showing when the external assembling an linking script is finished.
1792
1900
exec_e_res_not_found=09021_E_resource compiler not found, switching to external mode
1901
% An external resource compiler was not found, the compiler will produce a script that
1902
% can be used to assemble, compile resources and link or postprocess the program.
1793
1903
exec_i_compilingresource=09022_I_Compiling resource $1
1904
% An informational message, showing which resource is being compiled.
1794
1905
exec_t_unit_not_static_linkable_switch_to_smart=09023_T_unit $1 can't be statically linked, switching to smart linking
1906
% Statical linking was requested, but a unit which is not statically linkable was used.
1795
1907
exec_t_unit_not_smart_linkable_switch_to_static=09024_T_unit $1 can't be smart linked, switching to static linking
1908
% Smart linking was requested, but a unit which is not smart-linkable was used.
1796
1909
exec_t_unit_not_shared_linkable_switch_to_static=09025_T_unit $1 can't be shared linked, switching to static linking
1910
% Shared linking was requested, but a unit which is not shared-linkable was used.
1797
1911
exec_e_unit_not_smart_or_static_linkable=09026_E_unit $1 can't be smart or static linked
1912
% Smart or static linking was requested, but a unit which cannot be used for either was used.
1798
1913
exec_e_unit_not_shared_or_static_linkable=09027_E_unit $1 can't be shared or static linked
1914
% Shared or static linking was requested, but a unit which cannot be used for either was used.
1915
exec_d_resbin_params=09028_D_Calling resource compiler "$1" with "$2" as command line
1916
% An informational message showing which command-line is used for the resource compiler.
1799
1917
%\end{description}
1803
1921
# Executable information
1805
execinfo_f_cant_process_executable=09028_F_Can't post process executable $1
1806
execinfo_f_cant_open_executable=09029_F_Can't open executable $1
1807
execinfo_x_codesize=09030_X_Size of Code: $1 bytes
1808
execinfo_x_initdatasize=09031_X_Size of initialized data: $1 bytes
1809
execinfo_x_uninitdatasize=09032_X_Size of uninitialized data: $1 bytes
1810
execinfo_x_stackreserve=09033_X_Stack space reserved: $1 bytes
1811
execinfo_x_stackcommit=09034_X_Stack space commited: $1 bytes
1924
% \section{Executable information messages.}
1925
% This section lists all messages that the compiler emits when an executable program is produced,
1926
% and only when the internal linker is used.
1927
% \begin{description}
1928
execinfo_f_cant_process_executable=09128_F_Can't post process executable $1
1929
% Fatal error when the compiler is unable to post-process an executable.
1930
execinfo_f_cant_open_executable=09129_F_Can't open executable $1
1931
% Fatal error when the compiler cannot open the file for the executable.
1932
execinfo_x_codesize=09130_X_Size of Code: $1 bytes
1933
% Informational message showing the size of the produced code section.
1934
execinfo_x_initdatasize=09131_X_Size of initialized data: $1 bytes
1935
% Informational message showing the size of the initialized data section.
1936
execinfo_x_uninitdatasize=09132_X_Size of uninitialized data: $1 bytes
1937
% Informational message showing the size of the uninitialized data section.
1938
execinfo_x_stackreserve=09133_X_Stack space reserved: $1 bytes
1939
% Informational message showing the stack size that the compiler reserved for the executable.
1940
execinfo_x_stackcommit=09134_X_Stack space committed: $1 bytes
1941
% Informational message showing the stack size that the compiler committed for the executable.