User`s guide

Compile-Time Errors
Compile-Time Errors
Error: An error o
ccurred 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 e
rror.
Error: An erro
r occurred w riting to file "filename": reason. The file
could not be wr
itten. The reason is provided by the operating system. For
example, you m
ay not have sufficient disk space available to write the file.
Error: Canno
t write file "filename" because MCC has already created
a file with th
at 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 Comp il er lic ense. No additional MATLAB
Compiler li
censes are availab le for your work grou p.
Error: Coul
d not find license file "filename". (Windows only)The
license.da
t
file could not be found in matlabr oot\ bin.
Error: Init
ializing preferences required to run the application. The
.ctf file an
d the corresponding target (standalone application or shared
library) c
reated using MATLAB Compiler do not match. Ensure that the
.ctf
file and th
e 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. Neve
rcombinethe
.ctf file and the target application created during
executio
nofdifferent
mcc commands.
Error: Fi
le: "filename" not found. A specified file could not be found
on the pat
h. Verify that the file exists and that the path includes the file’s
location
.Youcanusethe
-I option to add a directory to the search path.
Error: Fi
le: "filename" is a script M-file and cannot be compiled with
the curr
ent Compiler. MATLAB Compiler cannot compile script M-files. To
learn ho
w to convert script M-files to function M-files, see “Converting Script
M-Files
to Function M-Files” on page 5-19.
B-3