MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Servisní příručka Strana 250

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 282
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 249
B
Target Language Compiler Error Messages
B-12
The %implements language does not match the language currently being
generated (
language
)
The language or languages specified in the %implements directive must exactly
match the
%language directive.
The %return statement can only appear within the body of a function
A %return statement can only be in the body of a function.
The :: operator can only be used within a function (Warning)
The :: operator (used to specify global scope within a function) should not be
used outside of a function body.
The == and != operators can only be used to compare values of the same
type
The == and != operator arguments must be the same type. You can use the
CAST() built-in function to change them into the same type.
The argument for %openfile must be a valid string
When opening an output file, the name of the file must be a valid string.
The argument for %with must be a valid scope
The argument to %with must be a valid scope identifier. For example:
%assign x = 1
%with x
%endwith
In this code, the %with statement argument is a number and produces this
error message.
The argument for an [] operation must be a repeated scope symbol, a
vector, or a matrix
When using the [] operator to index, the expression on the left of the brackets
must be a vector, matrix, string, numeric constant, or a repeated scope
Zobrazit stránku 249
1 2 ... 245 246 247 248 249 250 251 252 253 254 255 ... 281 282

Komentáře k této Příručce

Žádné komentáře