Compile-Time Errors

Error: An error occurred while shelling out to mex/mbuild (error code = errorno). Unable to build (specify the -v option for more information).  MATLAB Compiler reports this error if mbuild or mex generates an error.

Error: An error occurred writing to file "filename": reason.  The file could not be written. The reason is provided by the operating system. For example, you may not have sufficient disk space available to write the file.

Error: Cannot write file "filename" because MCC has already created a file with that name, or a file with that name was specified as a command line argument.  MATLAB Compiler has been instructed to generate two files with the same name. For example:

mcc -W lib:liba liba -t 	% Incorrect

Error: Could not check out a Compiler license.  No additional MATLAB Compiler licenses are available for your workgroup.

Error: Could not find license file "filename".  (Windows only) The license.dat file could not be found in matlabroot\bin.

Error: Initializing preferences required to run the application.  The .ctf file and the corresponding target (standalone application or shared library) created using MATLAB Compiler do not match. Ensure that the .ctf file and the target file are created as output from the same mcc command. Verify the time stamp of these files to ensure they were created at the same time. Never combine the .ctf file and the target application created during execution of different mcc commands.

Error: File: "filename" not found.  A specified file could not be found on the path. Verify that the file exists and that the path includes the file's location. You can use the -I option to add a directory to the search path.

Error: File: "filename" is a script M-file and cannot be compiled with the current Compiler.  MATLAB Compiler cannot compile script M-files. To learn how to convert script M-files to function M-files, see Converting Script M-Files to Function M-Files.

Error: File: filename Line: # Column: # A variable cannot be made storageclass1 after being used as a storageclass2.  You cannot change a variable's storage class (global/local/persistent). Even though MATLAB allows this type of change in scope, MATLAB Compiler does not.

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('-m', '-v', 'hello')% Correct
mcc('-m -v', 'hello')	  % Incorrect

Error: Improper usage of option -optionname. Type "mcc -?" for usage information.  You have incorrectly used a MATLAB Compiler option. For more information about MATLAB Compiler options, see Function Reference, or type mcc -? at the command prompt.

Error: libraryname library not found.  MATLAB has been installed incorrectly.

Error: No source files were specified (-? for help).  You must provide MATLAB Compiler with the name of the source file(s) to compile.

Error: "optionname" is not a valid -option option argument.  You must use an argument that corresponds to the option. For example:

mcc -W main ...	% Correct
mcc -W mex  ...	% Incorrect

Error: Out of memory.  Typically, this message occurs because MATLAB Compiler requests a larger segment of memory from the operating system than is currently available. Adding additional memory to your system could alleviate this problem.

Error: Previous warning treated as error.  When you use the -w error option, this error appears immediately after a warning message.

Error: The argument after the -option option must contain a colon.  The format for this argument requires a colon. For more information, see Function Reference, or type mcc -? at the command prompt.

Error: The environment variable MATLAB must be set to the MATLAB root directory.  On UNIX, the MATLAB and LM_LICENSE_FILE variables must be set. The mcc shell script does this automatically when it is called the first time.

Error: The license manager failed to initialize (error code is errornumber).  You do not have a valid MATLAB Compiler license or no additional MATLAB Compiler licenses are available.

Error: The option -option is invalid in modename mode (specify -? for help).  The specified option is not available.

Error: The specified file "filename" cannot be read.  There is a problem with your specified file. For example, the file is not readable because there is no read permission.

Error: The -optionname option requires an argument (e.g. "proper_example_usage").  You have incorrectly used a MATLAB Compiler option. For more information about MATLAB Compiler options, see Function Reference, or type mcc -? at the command prompt.

Error: -x is no longer supported.  MATLAB Compiler no longer generates MEX-files because there is no longer any performance advantage to doing so. The MATLAB JIT Accelerator makes compilation for speed obsolete.

Error: Unable to open file "filename":<string>.  There is a problem with your specified file. For example, there is no write permission to the output directory, or the disk is full.

Error: Unable to set license linger interval (error code is errornumber).  A license manager failure has occurred. Contact Technical Support with the full text of the error message.

Error: Unknown warning enable/disable string: warningstring.  -w enable:, -w disable:, and -w error: require you to use one of the warning string identifiers listed in Warning Messages.

Error: Unrecognized option: -option.  The option is not a valid option. See Function Reference, for a complete list of valid options for MATLAB Compiler, or type mcc -? at the command prompt.

  


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