MATLAB Compiler Previous page   Next Page

Compile-Time Errors

Error: An error occurred while shelling out to mex/mbuild (error code = errorno). Unable to build executable (specify the -v option for more information).   The 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.   The Compiler has been instructed to generate two files with the same name. For example:

Error: Could not check out a Compiler license.   No additional 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: 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.   The 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, the 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:

Error: Improper usage of option -optionname. Type "mcc -?" for usage information.   You have incorrectly used a Compiler option. For more information about Compiler options, see 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 the 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:

Error: Out of memory.   Typically, this message occurs because the 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 displays 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 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 Compiler license or no additional 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 Compiler option. For more information about Compiler options, see Reference or type mcc -? at the command prompt.

Error: -x is no longer supported.   The 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 at The MathWorks 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 the Warning Messages.

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


Previous page  Error and Warning Messages Warning Messages Next page

© 1994-2005 The MathWorks, Inc.