MATLAB COMPILER RELEASE NOTES User's Guide Page 241

  • Download
  • Add to my manuals
  • Print
  • Page
    / 264
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 240
Compile-Time Errors
B-7
Error: File:
filename
Line: # Column: # The single colon operator (:) can only be used within an
array index expression.
You can only use the : operator by itself as an array
index. For example,
A(:) = 5; is okay, but y = :; is not.
Error: File:
filename
Line: # Column: # The variable
variablename
was mentioned more than
once as an input.
The argument list has a repeated variable. For example,
function y = myfun(x, x) % Incorrect
Error: File:
filename
Line: # Column: # The variable
variablename
was mentioned more than
once as an output.
The return value vector has a repeated variable. For example,
function [x, x] = myfun(y) % Incorrect
Error: File:
filename
Line: # Column: # This statement is incomplete. Variable arguments cannot
be made global or persistent.
The vari ables varargin and varargout are not like
other variables. They cannot be declared either global or persistent. For
example,
global varargin % Incorrect
Error: File:
filename
Line: # Column: # Variable argument (varargin) must be last in input
argument list. The function call must specify the required arguments first
followed by
varargin. For example,
function [out1, out2] = example1(a, b, varargin) % Correct
function [out1, out2] = example1(a, varargin, b) % Incorrect
Error: File:
filename
Line: # Column: # Variable argument (varargout) must be last in output
argument list.
The function call must specify the required arguments first
followed by
varargout. For example,
function [i, j, varargout]= ex2(x1, y1, x2, y2, val) % Correct
function [i, varargout, j]= ex2(x1, y1, x2, y2, val) % Incorrect
Error: File:
filename
Line: # Column: #
variablename
has been declared both as GLOBAL and
PERSISTENT.
Declare variables as either GLOBAL or PERSISTENT.
Error: Found illegal whitespace character in command line option: "
string
"
.
The strings on the
left and right side of the space should be separate arguments to MCC. For example,
mcc('-A', 'none') % Correct
mcc('-A none') % Incorrect
Page view 240
1 2 ... 236 237 238 239 240 241 242 243 244 245 246 ... 263 264

Comments to this Manuals

No comments