| MATLAB Compiler | ![]() |
Warning Messages
This section lists the warning messages that the 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 stand-alone application, you can use
To enable all warnings except those generated by the save command, use
To display a list of all the warning message identifier strings, use
For additional information about the -w option, see Reference.
Warning: File: filename Line: # Column: # The #function pragma expects a list of function names. (pragma_function_missing_names) This pragma informs the 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) The Compiler detected an inconsistency between the location of the M-file as given on the command line and in the search path. The Compiler uses the location in the search path. This warning occurs when you specify a full pathname on the mcc command 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.
Warning: The file filename was repeated on the Compiler command line. (repeated_file) This warning occurs when the same filename appears more than once on the compiler command line. For example:
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 Windows. 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 the 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.
| Compile-Time Errors | Depfun Errors | ![]() |
© 1994-2005 The MathWorks, Inc.