illegal expression pascal что значит
Pascal | Коды ошибок
СООБЩЕНИЯ КОМПИЛЯТОРА ОБ ОШИБКАХ
1 | Out of memory | Выход за границы памяти | Компилятор выполняется вне допустимых границ памяти. Имеется ряд возможных решений проблемы: |
§ Если в меню Options?Linker?Link Buffer, установлен параметр Memory, переключите его в значение Disk.
§ Возможно программа слишком велика, чтобы компилироваться в таком объеме памяти. Следует разбить ее на два или более модуля.
§ несоответствующее количество begin и end (не забудьте, что оператор case также заканчивается словом end);
§ включаемый файл заканчивается в середине раздела операторов. Каждый раздел операторов должен целиком помещаться в одном файле;
§ незаконченный комментарий.
§ несовместимые типы переменной и выражения в операторе присваивания;
§ несовместимые типы фактического и формального параметров в обращении к процедуре или функции;
§ тип выражения, несовместимый с типом индекса при индексировании массива;
§ несовместимые типы операндов в выражении.
§ Идентификатору функции можно присваивать значения только внутри раздела операторов данной функции.
§ Идентификатор обозначает абсолютную переменную.
§ Идентификатор обозначает процедуру или функцию типа inline.
§ Файл .com содержит ссылки с размерами в байтах на перемещаемые идентификаторы. Такая ошибка происходит в случае, если вы используете операторы HIGH и DOWN с перемещаемыми идентификаторами или если вы ссылаетесь в директивах DB на перемещаемые идентификаторы.
§ Операнд ссылается на перемещаемый идентификатор, который не был определен в сегменте CODE или в сегменте DATA.
§ Операнд ссылается на процедуру EXTRN или функцию EXTRN со смещением, например CALL SortProc+8.
§ Процедуры или функции были описаны с помощью описания forward, но их определение не найдено.
§ Вы пытаетесь осуществить приведение типа выражения, когда разрешается только ссылка на переменную, процедуру или функцию.
§ Вы пытаетесь присвоить константу вне диапазона переменной.
(*) С3. Сообщения синтаксического анализатора
Ошибка Turbo Pascal была обнаружена. Это обычно происходит, если неправильный символ найден в исходном файле.
Error: INTERRUPT procedure can’t be nested
Процедура INTERRUPT должна быть глобальной.
Warning: Procedure type «Сообщение» ignored
Error: Not all declarations of «Сообщение» are declared with OVERLOAD
Error: Duplicate exported function name «Сообщение»
Экспортируемые имена функций в указанной DLL не должны совпадать.
Error: Invalid index for exported function
Warning: Relocatable DLL or executable arg1 debug info does not work, disabled
Error: Constructor name must be INIT
Error: Destructor name must be DONE
Error: Procedure type INLINE not supported
Warning: Constructor should be public
Конструктор должен быть в разделе public объявления объекта ( класса ).
Warning: Destructor should be public
Деструктор должен быть в разделе public объявления объекта ( класса ).
Note: Class should have one destructor only
Вы должны объявлять только один деструктор для класса.
Error: Local class definitions are not allowed
Классы должны быть объявлены глобально. Они не могут быть объявлены внутри процедуры или функции.
Fatal: Anonymous class definitions are not allowed
Было обнаружено неправильное объявление объекта ( класса ), например, объект или класс без методов, не являются рпоизводными от другого объекта. Пример:
Type o = object
a : longint ;
end ;
Note: The object «Сообщение» has no VMT
Это замечание означает, что объявленный объект не имеет таблицы виртуальных методов.
Error: Illegal parameter list
Вы вызываете функцию с параметрами, которые отличаются от параметров, указанных при объявлении функции.
Error: Wrong number of parameters specified for call to «Сообщение»
Это ошибка в списке параметров функции или процедуры – неправильное количество параметров.
Error: overloaded identifier «Сообщение» isn’t a function
Компилятор обнаружил идентификатор с именем, которое совпадает с именем перегружаемой функции, но этот идентификатор не является функцией, которая может быть перегружаемой.
Error: overloaded functions have the same parameter list
Вы объявили перегружаемые функции, но с одинаковым списком параметров. Перегружаемая функция должна иметь не менее 1 отличия в параметрах от объявленной функции.
Error: function header doesn’t match the previous declaration «Сообщение»
Вы объявили функцию с одинаковыми параметрами, но тип результата отличается.
Error: function header «Сообщ1» doesn’t match forward : var name changes Сообщ2 => Сообщ3
Вы объявили функцию в интерфейсной части, или с директивой forward, но с различным списком параметров.
Note: Values in enumeration types have to be ascending
Error: With cannot be used for variables in a different segment
Локальная переменная записывается в стек, но это невозможно, если переменная принадлежит другому сегменту.
Error: function nesting > 31
Вы можете объявлять вложенные функции только до 31 уровня в глубину.
Error: range check error while evaluating constants
Константы находятся за пределами допустимого диапазона.
Warning: range check error while evaluating constants
Константы находятся за пределами допустимого диапазона.
Error: duplicate case label
Error: Upper bound of case range is less than lower bound
Верхняя граница метки в конструкции case меньше, чем нижняя граница, а это неправильно.
Error: typed constants of classes or interfaces are not allowed
Вы не можете объявить константу типа класса или объекта.
Error: functions variables of overloaded functions are not allowed
Вы пытаетесь назначить перегружаемую функцию процедурной переменной. Это не допускается.
Error: string length must be a value from 1 to 255
Длина shortstring в Pascal ограничена 255 символами. Вы пытаетесь объявить строку длиной меньше 1 или больше 255 символов.
Warning: use extended syntax of NEW and DISPOSE for instances of objects
Warning: use of NEW or DISPOSE for untyped pointers is meaningless
Использование NEW или DISPOSE для нетипизированных указателей не имеет смысла.
Error: use of NEW or DISPOSE is not possible for untyped pointers
Error: class identifier expected
Это сообщение появляется, если компилятор обнаружил объявление процедуры, которая содержит точку, то есть метод объекта или класса, но тип перед точкой не известен компилятору.
Error: type identifier not allowed here
Вы не можете использовать тип внутри выражения.
Error: method identifier expected
Идентификатор не является методом. Это сообщение появляется, если компилятор обнаружил объявление процедуры, которая содержит точку, то есть метод объекта или класса, но имя процедуры не является процедурой данного типа.
Error: function header doesn’t match any method of this class «Сообщение»
Идентификатор не является методом. Это сообщение появляется, если компилятор обнаружил объявление процедуры, которая содержит точку, то есть метод объекта или класса, но имя процедуры не является процедурой данного типа.
Error: Illegal floating point constant
Компилятор ожидал увидеть выражение с плавающей точкой, но получил нечто другое.
Error: FAIL can be used in constructors only
Вы использовали ключевое слово fail вне метода конструктора.
Error: Destructors can’t have parameters
Вы объявили деструктор со списком параметров. Методы деструктора не могут иметь параметры.
Error: Only class methods can be referred with class references
Эта ошибка возникает в ситуации, подобной следующей:
Free – это не метод класса и, следовательно, не может быть вызван со ссылкой на класс.
Error: Only class methods can be accessed in class methods
Это связано похоже на предыдущую ошибку. Вы не можете вызвать метод объекта из внутреннего метода класса. Следующий код вызовет такую ошибку:
Так как free – это нормальный метод класса, он не может быть вызван из метода класса.
Error: Constant and CASE types do not match
Error: The symbol can’t be exported from a library
Вы можете экспортировать процедуры и функции, только когда вы пишите библиотеку. Вы не можете экспортировать переменные и константы.
Warning: An inherited method is hidden by «Сообщение»
Error: There is no method in an ancestor class to be overridden: «Сообщение»
Вы пытаетесь переписать директивой override виртуальный метод класса- предка, который не существует.
Error: No member is provided to access property
Вы не указали директиву read для свойства.
Warning: Stored property directive is not yet implemented
Это сообщение больше не используется, так как записанная директива была выполнена.
Error: Illegal symbol for property access
Это ошибка директив read или write для свойства типа массива. Если вы объявляете свойство-массив, вы можете получить доступ к нему только с помощью процедуры или функции. Следующий код вызовет такую ошибку:
tmyobject = class
i : integer ;
property x [ i : integer ]: integer read I write i ;
Error: Cannot access a protected field of an object here
Поля, которые объявлены в разделе protected объекта или класса, не могут быть доступны из другого модуля.
Error: Cannot access a private field of an object here
Поля, которые объявлены в разделе private объекта или класса, не могут быть доступны из другого модуля.
Error: Overridden methods must have the same return type: «Сообщение2» is overriden by «Сообщение1» which has another return
Если вы объявили перегружаемые методы в определении класса, они должны иметь одинаковый тип возвращаемого результата.
Error: EXPORT declared functions can’t be nested
Вы не можете объявить функцию или процедуру внутри функции или процедуры, которая была объявлена как экспортная процедура.
Error: Methods can’t be EXPORTed
Вы не можете объявить процедуру, которая является методом для экспортируемого объекта.
Error: Call by var for arg no. Сообщ1 has to match exactly: Got «Сообщ2» expected «Сообщ3»
Error: Class isn’t a parent class of the current class
Когда вызываются наследуемые методы, вы пытаетесь вызвать метод не связанный с классом. Вы можете только вызвать метод класса- предка.
Error: SELF is only allowed in methods
Error: Methods can be only in other methods called direct with type identifier of the class
Конструкция, подобная следующей: НекийТип.НекийМетод допускается только для методов.
Error: Illegal use of ’:’
Вы использовали формат : (двоеточие) 2 раза в выражении, которое не предусматривает такой формат.
Error: range check error in set constructor or duplicate set element
Объявление множества содержит ошибку. Какой-то элемент находится вне диапазона или имеется два одинаковых элемента.
Error: Pointer to object expected
Error: Expression must be constructor call
Error: Expression must be destructor call
Error: Illegal order of record elements
При объявлении записи-константы вы указали поля в неправильном порядке.
Error: Expression type must be class or record type
Для оператора with необходим аргумент, который имеет тип записи или класса. Вы используете выражение, которое не относится ни к одному из данных типов.
Error: Procedures can’t return a value
Error: constructors and destructors must be methods
Вы объявили процедуру как конструктор или деструктор, когда процедура не является методом класса.
Error: Operator is not overloaded
Вы пытаетесь использовать перегружаемый оператор, когда он не является перегружаемым для этого типа.
Error: Impossible to overload assignment for equal types
Вы не можете перегрузить аргумент для типов, которые компилятор рассматривает как эквивалентные.
Error: Impossible operator overload
Комбинация оператор/аргумент/возвращаемое значение является несовместимой.
Error: Re-raise isn’t possible there
Error: The extended syntax of new or dispose isn’t allowed for a class
Error: Procedure overloading is switched off
Error: It is not possible to overload this operator. Related overloadable operators (if any) are: Сообщение
Error: Comparative operator must return a boolean value
Error: Only virtual methods can be abstract
Вы объявили метод как абстрактный, когда он не объявлен как виртуальный.
Fatal: Use of unsupported feature!
Вы пытаетесь форсировать компилятор, когда он к этому не готов.
Error: The mix of different kind of objects (class, object, interface, etc) isn’t allowed
Вы не можете порождать объекты, классы и интерфейсы ( objects, classes, cppclasses и interfaces ) друг от друга. Например, класс не может быть предком объекта и наоборот.
Warning: Unknown procedure directive had to be ignored: «Сообщение»
Вы указали неизвестную процедурную директиву.
Error: absolute can only be associated to one variable
Error: absolute can only be associated with a var or const
Адрес директивы absolute может только указывать на переменную или константу. Таким образом, следующий код вызовет эту ошибку:
Procedure X ;
var p : longint absolute x ;
Error: Only one variable can be initialized
Error: Abstract methods shouldn’t have any definition (with function body)
Абстрактные методы можно только объявлять. Вы не можете их выполнить. Они должны быть перегружены в классе-потомке.
Error: This overloaded function can’t be local (must be exported)
Warning: Virtual methods are used without a constructor in «Сообщение»
Если вы определили объекты или классы, содержащие виртуальные методы, то вам необходимо иметь конструктор и деструктор для их инициализации. Компилятор нашёл объект или класс с виртуальными методами, которые не имеют пары конструктор/деструктор.
Macro defined: Сообщение
Macro undefined: Сообщение
Macro Сообщение1 set to Сообщение2
Info: Compiling Сообщение
Parsing interface of unit Сообщение
Сообщение о том, что начато чтения интерфейсной части модуля.
Parsing implementation of Сообщение
Сообщение о том, что начато чтения исполняемой части модуля, библиотеки или программы.
Compiling Сообщение for the second time
Error: No property found to override
Вы хотите перегрузить свойство существующего класса-предка, но там такого свойства нет.
Error: Only one default property is allowed
Error: The default property must be an array property
Только массив свойств класса может быть сделан свойствами по умолчанию.
Error: Virtual constructors are only supported in class object model
Вы не можете иметь виртуальные конструкторы в объектах. Это допускается только для классов.
Error: No default property available
Вы пытаетесь получить доступ к свойству класса по умолчанию, но этот класс (или один из его предков) не имеет свойства по умолчанию.
Error: The class can’t have a published section, use the <$M+>switch
Error: Forward declaration of class «Сообщение» must be resolved here to use the class as ancestor
Чтобы иметь возможность использовать объект как объект-предок, его нужно сначала определить. Эта ошибка случается в следующей ситуации:
Type ParentClas = Class ;
ChildClass = Class ( ParentClass )
.
end ;
где ParentClass объявлен, но не определён.
Error: Local operators not supported
Вы не можете перегружать локальные операторы, то есть внутри определения процедуры или функции.
Error: Procedure directive «Сообщение» not allowed in interface section
Error: Procedure directive «Сообщение» not allowed in implementation section
Error: Procedure directive «Сообщение» not allowed in procvar declaration
Эта процедурная директива не может быть частью объявления процедурного типа или типа функции.
Error: Function is already declared Public/Forward «Сообщение»
Error: Can’t use both EXPORT and EXTERNAL
Эти две процедурные директивы являются взаимно исключающими.
Warning: «arg1» not yet supported inside inline procedure/function
Встроенные процедуры не поддерживают это объявление.
Warning: Inlining disabled
Встроенные процедуры отключены.
Info: Writing Browser log Сообщение
Если информационные сообщения включены, то компилятор предупреждает вас, когда записывает лог обозревателя (генерируемый переключателем <$Y+ >).
Hint: may be pointer dereference is missing
Компилятор предполагает, что указатель нужно разыменовать.
Fatal: Selected assembler reader not supported
Выбранный ассемблер (с <$ASMMODE xxx>не поддерживается. Компилятор может работать с или без поддержки редкого ассемблера.
Error: Procedure directive «Сообщение» has conflicts with other directives
Вы указали процедурную директиву, которая конфликтует с другой директивой. Например, cdecl и pascal являются взаимно исключающими, то есть несовместимыми.
Error: Calling convention doesn’t match forward
Error: The default value of a property must be constant
Значение по умолчанию объявленного свойства должно быть известно во время компиляции. Значение, которое вы указали, будет известно только во время выполнения. Эта ошибка случается, например, если вы указали имя переменной как значение по умолчанию.
Error: Symbol can’t be published, can be only a class
Только переменные типа класса могут быть в разделе published класса, если они не объявлены как свойства.
Error: This kind of property can’t be published
Error: An import name is required
Error: Division by zero
Было обнаружено деление на ноль.
Error: Invalid floating point operation
Операция с двумя значениями вещественного типа вызвала переполнение или деление на ноль.
Error: Upper bound of range is less than lower bound
Верхняя граница объявленного массива меньше, чем нижняя граница, а это недопустимо.
Warning: string «Сообщение1» is longer than «Сообщение2»
Размер строковой константы больше, чем размер, указанный вами при определении строкового типа.
Error: string length is larger than array of char length
Error: Illegal expression after message directive
Free Pascal поддерживает только целочисленные или строковые значения в качестве констант для сообщений.
Error: Message handlers can take only one call by ref. parameter
Error: Duplicate message label: «Сообщение»
Метка для сообщения используется дважды в одном объекте/классе.
Error: Self can only be an explicit parameter in methods which are message handlers
Параметр Self может передаваться ТОЛЬКО в метод, который объявлен как обработчик сообщения.
Error: Threadvars can be only static or global
Потоковые переменные должны быть статическими или глобальными. Вы не можете объявить локальный поток для процедуры. Локальные переменные являются всегда локальными в потоке, потому что каждый поток свой собственный стек и локальные переменные записываются в стек.
Fatal: Direct assembler not supported for binary output format
Вы не можете использовать ассемблер напрямую, если используете бинарный писатель. Вы берите другой выходной формат или используйте другой ассемблер.
Warning: Don’t load OBJPAS unit manually, use n
Вы пытаетесь загрузить модуль ObjPas вручную из раздела uses. Это плохая идея. Используйте директивы <$MODE OBJFPC>или <$mode delphi>, которые загружают этот модуль автоматически.
Error: OVERRIDE can’t be used in objects
Override не поддерживается для объектов, используйте virtual вместо этого для перегрузки метода объекта-предка.
Error: Data types which require initialization/finalization can’t be used in variant records
Error: Resourcestrings can be only static or global
Error: Exit with argument can’t be used here
Error: The type of the storage symbol must be boolean
Если вы указали символ storage в объявлении свойства, то оно должно быть логического типа.
Error: This symbol isn’t allowed as storage symbol
Вы не можете использовать этот типа символа как спецификатор storage в объявлении свойства. Вы можете использовать только методы результатом логического типа, логическими полями класса или логическими константами.
Error: Procedure directive expected
Эта ошибка случается, если вы имеете директиву <$Calling>без указанного условия вызова. Это также случается, если процедура объявлена в блоке констант и вы используете точку с запятой (;) после объявления процедуры, которое должна следовать за процедурной директивой. Правильное объявление:
const
p : procedure ; stdcall = nil ;
p : procedure stdcall = nil ;
Error: The value for a property index must be of an ordinal type
Значение, которое вы используете для индекса свойства, должно быть порядкового типа.
Error: Procedure name too short to be exported
Error: No DEFFILE entry can be generated for unit global vars
Вам нужно компилировать этот файл без опции –WD в командной строке.
Fatal: You need ObjFpc (-S2) or Delphi (-Sd) mode to compile this module
Error: Can’t export with index under Сообщение
Экспортирование функций или процедур с указанным индексом не поддерживается данной целевой платформой.
Error: Exporting of variables is not supported under Сообщение
Экспортирование переменных не поддерживается данной целевой платформой.
Error: Improper GUID syntax
Код GUID имеет неправильный синтаксис. Он должен иметь формат:
Где каждый X – шестнадцатиричное число.
Warning: Procedure named «Сообщ1» not found that is suitable for implementing the Сообщ2.Сообщ3
Компилятор не может найти подходящую процедуру, которая выполняет данный метод интерфейса. Процедура с таким именем найдена, но параметры не совпадают.
Error: interface identifier expected
Это сообщение появляется, если компилятор сканирует объявление класса, который содержит interface функции, подобно следующему:
а interface не перечислен в списке потомков.
Error: Type «Сообщение» can’t be used as array index type
Error: Con-and destructors aren’t allowed in interfaces
Объявления конструктора и деструктора не допускаются в интерфейсах. В большинстве случаев метод QueryInterface интерфейса IUnknown можно использовать для создания нового интерфейса.
Error: Access specifiers can’t be used in INTERFACEs and OBJCPROTOCOLs
Спецификаторы доступности public, private, protected и published нельзя использовать в интерфейсах, Objective-C протоколов и категорий потому что все методы интерфейса /протокола/категории должны быть доступны ( public ).
The access specifiers public, private, protected and published can’t be used in interfaces, Objective-C protocols and categories because all methods of an interface/protocol/category must be public.
Error: An interface can’t contain fields
Error: An interface, helper or Objective-C protocol or category cannot contain fields
Объявления полей не допускаются в интерфейсах. Интерфейс может содержать только методы и свойства с методом чтения/записи и спецификатором доступа.
Declarations of fields are not allowed in interfaces, helpers and Objective-C protocols and categories. An interface/helper/protocol/category can contain only methods and properties with method read/write specifiers.
Заявления полей не допускаются в интерфейсах, помощников и Objective-C протоколов и категорий.Интерфейс / помощник / протокол / категория может содержать только методы и свойства с помощью метода чтения / записи спецификаторов.
Error: Can’t declare local procedure as EXTERNAL
Объявление локальных процедур как внешних невозможно. Локальные процедуры получают скрытые параметры, которые делают вероятность ошибки очень высокой.
Warning: Some fields coming before «Сообщение» weren’t initialized
В режиме Delphi не все поля записи-константы могут быть инициализированы, компилятор предупреждает вас, когда обнаруживает такую ситуацию.
Error: Some fields coming before «Сообщение» weren’t initialized
Warning: Some fields coming after «Сообщение» weren’t initialized
Вы можете инициализировать некоторые поля в конце записи-константы (компилятор их инициализирует со значением 0 автоматически). Это может вызвать труднонаходимые проблемы.
Error: VarArgs directive (or ’. ’ in MacPas) without CDecl/CPPDecl/MWPascal and External
Error: Self must be a normal (call- by-value) parameter
Error: Interface «Сообщение» has no interface identification
Error: Unknown class field or method identifier «Сообщение»
Свойства должны ссылаться на поле или метод в этом же классе.
Warning: Overriding calling convention «Сообщение1» with «Сообщение2»
Имеются две директивы в объявлении процедуры, которые определяют соглашение о вызовах. Только последняя директива будет использоваться.
Error: Typed constants of the type «procedure of object» can only be initialized with NIL
Вы не можете связать адрес метода с типизированной константой, которая имеет тип «процедура объекта», потому что такая константа требует два адреса: для метода (который известен во время компиляции) и для объекта или класса (который неизвестен во время компиляции).
Error: Default value can only be assigned to one parameter
Невозможно указать значение по умолчанию для нескольких параметров. Следующий пример неправильный:
Вместо этого вы должны написать так:
Procedure MyProcedure ( A : Integer = 0; B : Integer = 0);
Error: Default parameter required for «Сообщение»
Указанный параметр требует значения по умолчанию.
Warning: Use of unsupported feature!
Вы пытаетесь заставить компилятор выполнить какое-либо действие, которое он пока не может выполнить.
Hint: C arrays are passed by reference
Error: C array of const must be the last argument
Hint: Type «Сообщение» redefinition
Это сообщение указывает на то, что ранее объявленный тип был переопределён как-то иначе. Это может быть (а может и не быть) потенциально ошибкой исходного кода.
Warning: cdecl’ared functions have no high parameter
Warning: cdecl’ared functions do not support open strings
Error: Cannot initialize variables declared as threadvar
Error: Message directive is only allowed in Classes
Error: Procedure or Function expected
Метод класса может быть указан только для процедур и функций.
Warning: Calling convention directive ignored: «Сообщение»
Error: REINTRODUCE can’t be used in objects
Error: Each argument must have its own location
Если размещение для аргументов указано явно, как того требуют некоторые соглашения системных вызовов (syscall), то каждый аргумент должен иметь своё собственное размещение. Мысли, подобные этим
Error: Each argument must have an explicit location
Если для одного аргумента указано явно размещение, то все аргументы процедуры должны иметь явно указанное размещение.
Error: Unknown argument location
Размещение, указанное для аргумента, не распознаётся компилятором.
Error: 32 Bit-Integer or pointer variable expected
Error: Goto statements aren’t allowed between different procedures
.
procedure p1 ;
label
l1 ;
procedure p2 ;
begin
goto l1 ; // Такой переход не допускается
end ;
begin
p2
l1 :
end ;
.
Fatal: Procedure too complex, it requires too many registers
Тело вашей процедуры слишком большое для компилятора. Вы должны разделить процедуру на несколько меньших процедур.
Error: Illegal expression
Это может случиться во многих ситуациях. Обычно происходит при попытке вычислить выражение с константами.
Error: Invalid integer expression
Вы написали выражение, которое не является целочисленным, а компилятор ожидал целочисленный результат.
Error: Illegal qualifier
Один из следующих вариантов:
• Вы пытаетесь получить доступ к полю переменной, которая не является записью
• Вы индексируете переменную, которая не является массивом.
• Вы разыменовываете переменную, которая не является указателем.
Error: High range limit
Вы объявили поддиапазон, где верхний предел меньше, чем нижний предел диапазона.
Error: Exit’s parameter must be the name of the procedure it is used in
Error: Illegal assignment to for-loop variable «Сообщение»
Error: Can’t declare local variable as EXTERNAL
Объявление локальных переменных как external не допускается. Только глобальные переменные могут быть связаны с внешними переменными.
Error: Procedure is already declared EXTERNAL
Warning: Implicit uses of Variants unit
Error: Class and static methods can’t be used in INTERFACES
Спецификатор class и директива static не могут использоваться в интерфейсах, потому что все методы интерфейса должны быть общедоступными.
Error: Overflow in arithmetic operation
Операция с двумя целочисленными значениями вызвала переполнение.
Error: Protected or private expected
Error: SLICE can’t be used outside of parameter list
slice можно использовать только для аргументов, принимающих параметр открытого массива.
Error: A DISPINTERFACE can’t have a parent class
DISPINTERFACE – это специальный тип интерфейса, который не может иметь класса-предка.
Error: A DISPINTERFACE needs a guid
DISPINTERFACE всегда требует идентификации интерфейса ( GUID ).
Warning: Overridden methods must have a related return type. This code may crash, it depends on a Delphi parser bug
Если вы объявили перегружаемые методы в определении класса, они должны иметь одинаковый тип возвращаемого результата. Некоторые версии Delphi позволяют изменять тип возвращаемого результата методов интерфейса, и даже заменять процедуры на функции, но в результате код может оказаться неработоспособен на используемых типах и вызываемых методах.
Error: Dispatch IDs must be ordinal constants
Ключевое слово dispid должно следовать за константой порядкового типа (индекс dispid ).
Error: The range of the array is too large
Error: The address cannot be taken of bit packed array elements and record fields
Если вы объявили массив или запись как packed в режиме Mac Pascal (или как packed в любом режиме с <$bitpacking on>), то он будет запакован до битового уровня. Это означает, что невозможно будет получить индивидуальный адрес элемента массива или поля записи. Исключение из этого правила возможно только в том случае, если размер упаковки кратен 8.
Error: Dynamic arrays cannot be packed
Только стандартные (и возможно в будущем – открытые) массивы могут быть упакованы.
Error: Bit packed array elements and record fields cannot be used as loop variables
Если вы объявили массив или запись как packed в режиме Mac Pascal (или как packed в любом режиме с <$bitpacking on>), то он будет запакован до битового уровня. Это означает, что для работы с таким массивом нельзя будет использовать циклы.
Error: VAR and TYPE are allowed only in generics
Error: This type can’t be a generic
Error: No function result type specified for function «Сообщение»
Когда вы объявляете функцию первый раз, вы должны объявлять её в полной форме, то есть со всеми параметрами и типом результата.
Error: Specialization is only supported for generic types
Error: Generics can’t be used as parameters when specializing generics
Если специализация generic, то только не-generic типы могут использоваться как параметры.
Error: Constants of objects containing a VMT aren’t allowed
Error: Taking the address of labels defined outside the current scope isn’t allowed
Не допускается брать адрес метки за пределами текущей процедуры.
Error: Cannot initialize variables declared as external
Error: Illegal function result type
Некоторые типы, например, файловые, не могут использоваться как результат, возвращаемый функцией.
Error: No common type possible between «Сообщ1» and «Сообщ2»
Error: Generics without specialization cannot be used as a type for a variable
Generics должен быть всегда специализирован перед использованием как тип переменной.
Warning: Register list is ignored for pure assembler routines
Если используется чисто ассемблерная процедура, то список с изменёнными регистрами игнорируется.
Error: Implements property must have class or interface type
Свойство, которое принадлежит интерфейсу, должно быть типа класса или интерфейса.
Error: Implements-property must implement interface of correct type, found «Сообщ1» expected «Сообщ2»
Свойство, которое принадлежит интерфейсу, на самом деле принадлежит другому интерфейсу.
Error: Implements-property must have read specifier
Error: Implements-property must not have write-specifier
Error: Implements-property must not have stored-specifier
Error: Implements-property used on unimplemented interface: «Сообщение»
Интерфейс, которому принадлежит свойство, не принадлежит классу.
Error: Floating point not supported for this target
Компилятор проанализировал выражение с плавающей точкой, но оно не поддерживается.
Error: Class «Сообщ1» does not implement interface «Сообщ2»
Error: Type used by implements must be an interface
Error: Variables cannot be exported with a different name on this target, add the name to the declaration using the «export»
Error: Weak external symbols are not supported for the current target
Символ » weak external » – это символ, который может существовать, а может и нет (при static или dynamic ) во время компоновки. Эта концепция может быть недоступна (или ещё не работать) на текущей платформа или процессоре.
Error: Forward type definition does not match
Note: Virtual method «Сообщ1» has a lower visibility (Сообщ2) than parent class Сообщ3 (Сообщ4)
Виртуальный метод перегружает метод, который объявлен с более высокой видимостью. Это может дать непредвиденные результаты.
Error: Fields cannot appear after a method or property definition, start a new visibility section first
The reason is that otherwise the source code can appear ambiguous to the compiler, since it is possible to use modifiers such as default and register also as field names.
Причина в том, что в противном случае исходный код может оказаться неоднозначной в компилятор, так как можно использовать модификаторы, такие как умолчанию и регистрации также в качестве имен полей.
Error: Parameters cannot contain local type definitions. Use a separate type definition in a type block.
В Pascal нельзя передавать определения типов в качестве параметров, даже если они семантически эквивалентны простым типам. Переменные или параметры должны быть одинакового типа, если они ссылаются на определения одинаковых типов. В результате это не позволяет объявлять новые типы внутри списка параметров, потому что тогда возможны ссылки на то же определение типа в заголовке процедуры в разделах interface и implementation модуля (оба заголовка процедуры определены с разными типами). Помните, что выражения, такие как “ file of byte ” или “ string[50] ” также должны определяться как новый тип. Например, вы не можете объявить процедуру:
Procedure MyProc ( st : string [50]);
Это приведёт к данной ошибке. Правильно будет так:
Type TMyStr = string [50];
Procedure MyProc ( st : TMyStr );
Error: ABSTRACT and SEALED conflict
ABSTRACT и SEALED не могут использоваться вместе в одном объявлении.
Error: Cannot create a descendant of the sealed class «Сообщение»
Неизвестный метод этого класса не может быть унаследован другим классом.
Error: SEALED class cannot have an ABSTRACT method
Неизвестный метод этого класса не может быть унаследован. Следовательно, ни один класс не способен перегрузить абстрактный метод в неизвестном классе.
Error: Only virtual methods can be final
Вы объявили метод как финальный, когда он не объявлен как виртуальный.
Error: Final method cannot be overridden: «Сообщение»
Вы пытаетесь перегрузить виртуальный метод родительского класса, который не существует.
Error: Invalid enumerator identifier: «Сообщение»
Только идентификаторы перечислений » MoveNext » и » Current » поддерживаются.
Error: Enumerator identifier required
Идентификатор » MoveNext » или » Current » должен сопровождать модификатор нумератора.
Error: Enumerator MoveNext pattern method is not valid.
Error: Enumerator Current pattern property is not valid. Property must have a getter.
Нумератор » Current » соответствующего свойства должен быть больше.
Error: Only one enumerator MoveNext method is allowed per class/object
Error: Only one enumerator Current property is allowed per class/object
Error: For in loop cannot be used for the type «Сообщение»
For в цикле может использоваться не для всех типов. Например, он не может использоваться для нумераторов.
Error: Objective-C messages require their Objective-C selector name to be specified using the ”message” directive.
Objective-C messages require their Objective-C name (selector name) to be specified using the message ‘someName:’ procedure directive. While bindings to other languages automatically generate such names based on the identifier you use (by replacing all underscores with colons), this is unsafe since nothing prevents an Objective-C method name to contain actual colons.
Objective-C сообщения требуют свое имя Objective-C (имя селектора), который будет указан с помощью сообщения ‘SomeName:’ Директива процедура. Хотя привязки на другие языки автоматически генерировать такие имена, основанные на идентификатор вы используете (путем замены всех подчеркивает двоеточиями), это небезопасно, так как ничто не мешает Objective-C имя метода, чтобы содержать фактические двоеточия.
Error: Objective-C does not have formal constructors nor destructors. Use the alloc, initXXX and dealloc messages.
The Objective-C language does not have any constructors or destructors. While there are some messages with a similar purpose (such as init and dealloc), these cannot be identified using automatic parsers and do not guarantee anything like Pascal constructors/destructors (e.g., you have to take care of only calling “designated” inherited “constructors”). For these reasons, we have opted to follow the standard Objective-C patterns for instance creation/destruction.
Язык Objective-C не имеет конструкторов и деструкторов. Хотя есть некоторые сообщения, с той же целью (например, инициализации и dealloc), они не могут быть определены с помощью автоматических анализаторов и ничего не гарантирует, как Pascal конструкторов / деструкторов (например, вы должны заботиться о только называя «назначен» в наследство «конструкторы «). По этим причинам, мы решили следовать стандартным образцам Objective-C, например создания / уничтожения.
Error: Message name is too long (max. 255 characters)
Due to compiler implementation reasons, message names are currently limited to 255 characters
Error: Objective-C message symbol name for ”arg1” is too long
Due to compiler implementation reasons, mangled message names (i.e., the symbol names used in the assembler code) are currently limited to 255 characters.
Hint: Defining a new Objective-C root class. To derive from another root class (e.g., NSObject), specify it as the parent class.
If no parent class is specified for an Object Pascal class, then it automatically derives from TObject. Objective-C classes however do not automatically derive from NSObject, because one can have multiple root classes in Objective-C. For example, in the Cocoa framework both NSObject and NSProxy are root classes. Therefore, you have to explicitly define a parent class (such as NSObject) if you want to derive your Objective-C class from it.
Error: Objective-C classes cannot have published sections.
In Object Pascal, “published” determines whether or not RTTI is generated. Since the Objective-C runtime always needs RTTI for everything, this specified does not make sense for Objective-C classes.
Fatal: This module requires an Objective-C mode switch to be compiled
Error: Inherited methods can only be overridden in Objective-C, add ”override” (inherited method defined in arg1)
Hint: Inherited methods can only be overridden in Objective-C, add ”override” (inherited method defined in arg1)
It is not possible to reintroduce methods in Objective-C like in Object Pascal. Methods with the same name always map to the same virtual method entry. In order to make this clear in the source code, the compiler always requires the override directive to be specified when implementing overriding Objective-C methods in Pascal. If the implementation is external, this rule is relaxed because Objective-C does not have any override-style keyword (since it’s the default and only behaviour in that language), which makes it hard for automated header conversion tools to include it everywhere. The type in which the inherited method is defined is explicitly mentioned, because this may either be an objcclass or an objccategory.
Error: Message name ”arg1” in inherited class is different from message name ”arg2” in current class.
An overriding Objective-C method cannot have a different message name than an inherited method. The reason is that these message names uniquely define the message to the Objective-C runtime, which means that giving them a different message name breaks the “override” semantics.
Error: It is not yet possible to make unique copies of Objective-C types
Duplicating an Objective-C type using type x = type y; is not yet supported. You may be able to obtain the desired effect using type x = objcclass(y) end; instead.
Error: Objective-C categories and Object Pascal class helpers cannot be used as types
It is not possible to declare a variable as an instance of an Objective-C category or an Object Pascal class helper. A category/class helper adds methods to the scope of an existing class, but does not define a type by itself. An exception of this rule is when inheriting an Object Pascal class helper from another class helper.
Error: Categories do not override, but replace methods. Use ”reintroduce” instead.
Error: Replaced methods can only be reintroduced in Objective-C, add ”reintroduce” (replaced method defined in arg1).
Hint: Replaced methods can only be reintroduced in Objective-C, add ”reintroduce” (replaced method defined in arg1).
A category replaces an existing method in an Objective-C class, rather than that it overrides it. Calling an inherited method from an category method will call that method in the extended class’ parent, not in the extended class itself. The replaced method in the original class is basically lost, and can no longer be called or referred to. This behaviour corresponds somewhat more closely to reintroduce than to override (although in case of reintroduce in Object Pascal, hidden methods are still reachable via inherited). The type in which the inherited method is defined is explicitly mentioned, because this may either be an objcclass or an objccategory.
Error: Getter for implements interface must use the target’s default calling convention.
Interface getters are called via a helper in the run time library, and hence have to use the default calling convention for the target (register on i386 and x86_64, stdcall on other architectures).
Error: Typed files cannot contain reference-counted types.
The data in a typed file cannot be of a reference counted type (such as ansistring or a record containing a field that is reference counted).
Error: Operator is not overloaded: arg2 ”arg1”
You are trying to use an overloaded operator when it is not overloaded for this type.
Error: Operator is not overloaded: ”arg1” arg2 ”arg3”
You are trying to use an overloaded operator when it is not overloaded for this type.
Error: Expected another arg1 array elements
When declaring a typed constant array, you provided to few elements to initialize the array
Error: String constant too long while ansistrings are disabled
Only when a piece of code is compiled with ansistrings enabled (<$H+>), string constants longer than 255 characters are allowed.
Error: Type cannot be used as univ parameter because its size is unknown at compile time: ”arg1”
univ parameters are compatible with all values of the same size, but this cannot be checked in case a parameter’s size is unknown at compile time.
Error: Only one class constructor can be declared in class: ”arg1”
You are trying to declare more than one class constructor but only one class constructor can be declared.
Error: Only one class destructor can be declared in class: ”arg1”
You are trying to declare more than one class destructor but only one class destructor can be declared.
Error: Class constructors can’t have parameters
You are declaring a class constructor with a parameter list. Class constructor methods cannot have parameters.
Error: Class destructors can’t have parameters
You are declaring a class destructor with a parameter list. Class destructor methods cannot have parameters.
Fatal: This construct requires the \ <\$modeswitch objectivec1\>mode switch to be active
Objective-Pascal constructs are not supported when <$modeswitch ObjectiveC1>is not active.
Error: Unicodechar/string constants cannot be converted to ansi/shortstring at compile-time
It is not possible to use unicodechar and unicodestring constants in constant expressions that have to be converted into an ansistring or shortstring at compile time, for example inside typed constants. The reason is that the compiler cannot know what the actual ansi encoding will be at run time.
Error: For-in Objective-Pascal loops require \ <\$modeswitch ObjectiveC2\>to be active
Objective-C “fast enumeration” support was added in Objective-C 2.0, and hence the appropriate modeswitch has to be activated to expose this feature. Note that Objective-C 2.0 programs require Mac OS X 10.5 or later.
Error: The compiler cannot find the NSFastEnumerationProtocol or NSFastEnumerationState type in the CocoaAll unit
Objective-C for-in loops (fast enumeration) require that the compiler can find a unit called CocoaAll that contains definitions for the NSFastEnumerationProtocol and NSFastEnumerationState types. If you get this error, most likely the compiler is finding and loading an alternate CocoaAll unit.
Error: Typed constants of the type ’procedure is nested’ can only be initialized with NIL and global procedures/functions
A nested procedural variable consists of two components: the address of the procedure/function to call (which is always known at compile time), and also a parent frame pointer (which is never known at compile time) in case the procedural variable contains a reference to a nested procedure/function. Therefore such typed constants can only be initialized with global functions/procedures since these do not require a parent frame pointer.
Fatal: Declaration of generic class inside another generic class is not allowed
At the moment, scanner supports recording of only one token buffer at the time (guarded by internal error 200511173 in tscannerfile.startrecordtokens). Since generics are implemented by recording tokens, it is not possible to have declaration of generic class inside another generic class.
Error: Forward declaration of objcprotocol ”arg1” must be resolved before an objcclass can conform to it
An objcprotocol must be fully defined before classes can conform to it. This error occurs in the following situation:
Type MyProtocol = objcprotoocl;
where MyProtocol is declared but not defined.
Error: Record types cannot have published sections
Published sections can be used only inside classes.
Error: Destructors aren’t allowed in records or helpers
Destructor declarations aren’t allowed in records or helpers.
Error: Class methods must be static in records
Class methods declarations aren’t allowed in records without static modifier. Records have no inheritance and therefore non static class methods have no sence for them.
Error: Constructors aren’t allowed in records or record helpers
Constructor declarations aren’t allowed in records or record helpers
Error: Either the result or at least one parameter must be of type ”arg1”
It is required that either the result of the routine or at least one of its parameters be of the specified type. For example class operators either take an instance of the structured type in which they are defined, or they return one.
Type parameters may be specialized with types which (e.g. ansistring) need initialization/finalization code which is implicitly generated by the compiler.
Error: Variables being declared as external cannot be in a custom section
A section directive is not valid for variables being declared as external
Error: Non-static and non-global variables cannot have a section directive
A variable placed in a custom section is always statically allocated so it must be either a static or global variable.
Error: ”arg1” is not allowed in helper types
Some directives and specifiers like ”virtual”, ”dynamic”, ”override” aren’t allowed inside helper types in mode ObjFPC (they are ignored in mode Delphi), because they have no meaning within helpers. Also ”abstract” isn’t allowed in either mode.
Error: Class constructors aren’t allowed in helpers
Class constructor declarations aren’t allowed in helpers.
Error: The use of ”inherited” is not allowed in a record
As records don’t suppport inheritance the use of ”inherited” is prohibited for these as well as for record helpers (in mode ”Delphi” only).
Error: Type declarations are not allowed in local or anonymous records
Records with types must be defined globally. Types cannot be defined inside records which are defined in a procedure or function or in anonymous records.
Error: Duplicate implements clause for interface ”arg1”
A class may delegate an interface using the ”implements” clause only to a single property. Delegating it multiple times is a error.
Error: Interface ”arg1” can’t be delegated by ”arg2”, it already has method resolutions
Method resolution clause maps a method of an interface to a method of the current class. Therefore the current class has to implement the interface directly. Delegation is not possible.
Error: Interface ”arg1” can’t have method resolutions, ”arg2” already delegates it
Method resoulution is only possible for interfaces that are implemented directly, not by delegation.
- Массаж спины что входит какие зоны
- the system has experienced boot failures because of overclocking or changes of voltages что значит