Technical data
B 
Target Language Compiler Error Messages
B-6
Bad cast - unable to cast this expression to "
type
"
The Target Language Compiler does not know how to cast this expression from 
its current type to the specified type. For example, the Target Language 
Compiler is not able to cast a string to a number as in:
%assign x = "1234"
%assign y = CAST("Number", x );
Cannot convert string 
string
 to a number
Cannot convert the string to a number.
Cannot redefine existing symbol 
identifier
 (use %undef)
You cannot redefine a macro without using %undef first.
Changing value of 
identifier
 from the RTW file
You have overwritten the value that appeared in the RTW file.
Error opening "
filename
"
The Target Language Compiler could not open the file specified on the 
command line.
Errors occurred - aborting
This error message is always the last error to be reported. It occurs when:
• The number of error messages exceeds the error message threshold 
(5 by default)
or
• Processing completes and errors have occurred.
Expansion directives %<> cannot span multiple lines; use \ at end of line
An expansion directive cannot span multiple lines. To work around this 
restriction, use the 
\ line continuation character. For example:
%<CompiledModel.System[Sysidx].Block[BlkIdx].Name + 
"Hello">










