User`s guide
2 Installation and Configuration
2-16
•The MATLAB Compiler 2.1 sometimes will generate goto statements for
complicated
if conditions. The Borland C++ Compiler prohibits the goto
statement within a try…catch block. This error can occur if you use the
-A debugline:on option, because its implementation uses try…catch.To
work around this limitation, simplify the
if conditions.
•There is a limit ation with the Borland C++ Compiler. In your M-cod e, if you
use a constant number that includes a l eading zero and contains the digit ‘8’
or ‘9’ before the decimal point, the Borland compiler will display the error
message
Error <file>.c <line>: Illegal octal digit in function
<functionname>
For example, the Borland compiler considers 009.0 anillegal octal integer as
opposed to a legal floating-point constant, which is how it is defined in the
ANSI C standard.
As an aside, if all the digits are in the legal range for octal numbers (0-7),
then the compiler will incorrectly treat the number as a floating-point value.
So, if you have code such as
x = [007 06 10];
and want to use the Borland compiler, you should edit the M-code to remove
the leading zeros and write it as
x = [7 6 10];
•The MATLAB Compiler’s -d option(place output in specifieddirectory) does
not work properly wi th the Borland 5.0 and 5 .2 compilers if there are spaces
in the pathname due to limitations in the compiler.