MATLAB Compiler Previous page   Next Page

MATLAB Compiler

Typically, problems that occur when building stand-alone C and C++ applications involve mbuild. However, it is possible that you may run into some difficulty with the MATLAB Compiler. A good source for additional troubleshooting information for the MATLAB Compiler is the MATLAB Compiler Product Support page at the MathWorks Web site.

Licensing Problem.   If you do not have a valid license for the MATLAB Compiler, you will get an error message similar to the following when you try to access the Compiler.

If you have a licensing problem, contact The MathWorks. A list of contacts at The MathWorks is provided at the beginning of this manual.

Missing Functions In Callbacks.   If your application includes a call to a function in a callback string or in a string passed as an argument to the feval function or an ODE solver, and this is the only place in your M-file this function is called, the Compiler will not compile the function. The Compiler does not look in these text strings for the names of functions to compile. See Fixing Callback Problems: Missing Functions for more information.

Borland Compiler Does Not Work with the Builder Products.   The only compiler that supports the building of COM objects is Microsoft Visual C/C++ (versions 6.0, 7.0, and 7.1).

"MCRInstance not available" Message Displays.   If you receive the message MCRInstance not available when you try to run a stand-alone application that was generated with the MATLAB Compiler, it could be that the MCR is not located properly on your path or the CTF file is not in the proper directory.

To verify that the MCR is properly located on your path, from a development Windows machine, confirm that <matlabroot>\bin\win32, where <matlabroot> is your root MATLAB directory, appears on your system path ahead of any other MATLAB installations. From a Windows target machine, verify that <mcr_root>\<ver>\runtime\win32, where <mcr_root> is your root MCR directory, appears on your system path.

To verify that the CTF file that the MATLAB Compiler generated in the build process resides in the same directory as your program's executable file, look at the directory containing the program's executable file and make sure the corresponding .ctf file is also there.

The UNIX verification process is the same, except you use the appropriate UNIX path information.

"MATLAB file may be corrupt" Message Displays.   If you receive the message

when you run your stand-alone executable that was generated by the MATLAB Compiler, you should check the following.

MATLAB Compiler Does Not Generate Application.   If you experience other problems with the MATLAB Compiler, contact Technical Support at The MathWorks at support@mathworks.com.


Previous page  mbuild C++ Utility Library Reference Next page

© 1994-2005 The MathWorks, Inc.