Warning Messages

This section lists the warning messages that MATLAB Compiler can generate. Using the -w option for mcc, you can control which messages are displayed. Each warning message contains a description and the warning message identifier string (in parentheses) that you can enable or disable with the -w option. For example, to produce an error message if you are using a demo MATLAB Compiler license to create your standalone application, you 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 message identifier strings, use:

mcc -w list -m mfilename

For additional information about the -w option, see Function Reference.

Warning: File: filename Line: # Column: # The #function pragma expects a list of function names.  (pragma_function_missing_names) This pragma informs MATLAB Compiler that the specified function(s) provided in the list of function names will be called through an feval call. This will automatically compile the selected functions.

Warning: M-file "filename" was specified on the command line with full path of "pathname", but was found on the search path in directory "directoryname" first.  (specified_file_mismatch) MATLAB Compiler detected an inconsistency between the location of the M-file as given on the command line and in the search path. MATLAB Compiler uses the location in the search path. This warning occurs when you specify a full path name on the mcc command line and a file with the same base name (file name) 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

Warning: The file filename was repeated on MATLAB Compiler command line.  (repeated_file) This warning occurs when the same file name appears more than once on the compiler command line. For example:

mcc -m sample.m sample.m % Will generate the warning

Warning: The name of a shared library should begin with the letters "lib". "libraryname" doesn't.  (missing_lib_sentinel) This warning is generated if the name of the specified library does not begin with the letters "lib". This warning is specific to UNIX and does not occur on the Windows operating system. For example:

mcc -t -W lib:liba -T link:lib a0 a1 % No warning 
mcc -t -W lib:a -T link:lib a0 a1    % Will generate a warning

Warning: All warnings are disabled.  (all_warnings) This warning displays all warnings generated by MATLAB Compiler. This warning is disabled.

Warning: A line has num1 characters, violating the maximum page width (num2).  (max_page_width_violation) This warning is generated if there are lines that exceed the maximum page width, num2. This warning is disabled.

Warning: The option -optionname is ignored in modename mode (specify -? for help).  (switch_ignored) This warning is generated if an option is specified on the mcc command line that is not meaningful in the specified mode. This warning is enabled.

Warning: Unrecognized Compiler pragma "pragmaname".  (unrecognized_pragma) This warning is generated if you use an unrecognized pragma. This warning is enabled.

Warning: "functionname1" is a MEX- or P-file being referenced from "functionname2".  (mex_or_p_file) This warning is generated if functionname2 calls functionname1, which is a MEX- or P-file. This warning is enabled.

DEMO Compiler license. The generated application will expire 30 days from today, on date.  (demo_license) This warning displays the date that the deployed application will expire. This warning is enabled.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS