User`s guide
Warning Messages
Warning M essages
This section lists the warning messages that MATLAB Compiler can generate.
Using the
-w option for mcc, you can control w hich messages are displayed.
Each warning message contains a description and the warning message
identifier string (in p arentheses) that y ou can enable or disable with the
-w
option. For ex ample, to produce an error m ess age if you are using a demo
MATLAB Compiler license to create your standalone application, y ou can use
mcc -w error:demo_license -mvg hello
To enable all warnings except those generated by the save command, use
mcc -w enable -w disable:demo_license ...
To display a list of all the warning me ssage identifier strings, use
mcc -w list -m mfilename
For additional information ab ou t the -w option, see C hapter 10, “Functions
—ByCategory”.
Warning: File : filen a m e Line: # Colum n: # The #function pragm a
expects a list of function names. (pragma_function_m issing_names) This
pragma informs M ATLAB Compiler that the specified function(s) provided
in the list of function names will be called through an
feval call. This w ill
automatically compile the selected functions.
Warning: M-file "filena me" was specified on the command line
with full path of "pathname", but was found on the search path
in directory "director yname" first. (specified_file_mismatch) MATLAB
Compiler detected an inconsistency between the location of the M-file as
givenonthecommandlineandinthesearchpath. MATLABCompileruses
the location in the search path. This warning occurs when you specify a full
pathname on the
mcc com mand line and a file with the same base name
(filename) is found earlier on the search path. This warning is issued in the
following example if the file
afile.m exists in both dir1 and dir2:
mcc -m -I /dir1 /dir2/afile.m
B-7