User`s guide
B Error and Warning Messages
B-16
Warning: File:
filename
Line: # Column: # The second output argument from the
"
functionname
" function is only available in MEX mode. A run-time error will occur if this code
is executed in stand-alone mode. (unix_dos_second_argument) The DOS command
can be called with two outp ut argume nts. Tha t f orm cannot be compile d in
stand-alone m o de. This warning o ccurs if t h e DO S command was ca lle d with
two output arguments in a fil e that is being compiled in stand-alone mode. For
exampl e ,
[r, s] = dos('ls'); % causes a warning when compiling stand-alone
Warning: File:
filename
Line: # Column: # This load (save) statement referred to variable
"
variablename
" that was not referenced in the function. (load_save_unreferenced)
This warning occurs if a variable is loaded (saved) via a load (save) command,
but then does not occur elsewhere in scope.
Warning: File:
filename
Line: # Column: # Unmatched "end". (end_without_block) The
end statement does not have a corresponding for, while, switch, try,orif
statement.
Warning: File:
filename
Line: # Column: # Unrecognized Compiler pragma "
pragmaname
".
(unrecognized_pragma) Use one of the Compiler pragmas as described in
Chapter 7, “Reference.”
Warning: File:
filename
Line: # Column: #
name
has been used as both a function and a
variable, the variable is ignored.
(inconsistent_variab le) When a name represents
both a function and a variable, it is used as the function only.
Warning: File:
filename
Line: # Column: # "
variablename
" has not been defined prior to use
on this line. (undefined_variable) Variabl es should be d e fined prior to us e.
Warning: Line: # Column: # Function with duplicate name "
functionname
" cannot be called.
(duplicate_function_name) This warning occurs when an M-file contains more
than one function with the same name.
Warning:
filename
is a P-file being referenced from "
filename
". NOTE: A link error will be
produced if a call to this function is made from stand-alone mode.
(mex_or_p_file) The
Compiler ca nnot generate a call to a functio n in a P-file f or stand-alone cod e.
The warning occurs if a call to a functio n that is defined in a P-file is de te cted .