Skip to Main Content Skip to Search
Product Documentation

MATLAB Compiler

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

libmwlapack: load error: stgsy2_.  This error occurs when a customer has both the R13 and the R14 version of MATLAB or MCR/MGL specified in the folder path and the R14 version fails to load because of a lapack incompatibility.

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

Error: Could not check out a Compiler License:
No such feature exists.
If you have a licensing problem, contact MathWorks. A list of contacts at MathWorks is provided at the beginning of this document.

loadlibrary usage (MATLAB loadlibrary command).  The following are common error messages encountered when attempting to compile the MATLAB loadlibrary function or run an application that uses the MATLAB loadlibrary function with MATLAB Compiler:

For information about how to properly invoke the MATLAB loadlibrary function with MATLAB Compiler, see MATLAB Library Loading in the chapter MATLAB Code Deployment in your product user's guide.

MATLAB Compiler Does Not Generate the Application.  If you experience other problems with MATLAB Compiler, contact Technical Support at MathWorks at http://www.mathworks.com/contact_TS.html.

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

This MATLAB file does not have proper version information and 
may be corrupt. Please delete the extraction directory and 
rerun the application.
when you run your standalone application that was generated by MATLAB Compiler, you should check the following:

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 MATLAB file this function is called, MATLAB Compiler will not compile the function. MATLAB Compiler does not look in these text strings for the names of functions to compile. See Fixing Callback Problems: Missing Functions for more information.

"MCRInstance not available" Message Appears.  If you receive the message MCRInstance not available when you try to run a standalone application that was generated with MATLAB Compiler, it can be that the MCR is not located properly on your path or the CTF file is not in the proper folder (if you extracted it from your binary).
The UNIX verification process is the same, except you use the appropriate UNIX path information.

To verify that the MCR is properly located on your path, from a development Windows machine, confirm that matlabroot\runtime\win32|win64, where matlabroot is your root MATLAB folder, appears on your system path ahead of any other MATLAB installations.

From a Windows target machine, verify that <mcr_root>\<ver>\runtime\win32|win64, where <mcr_root> is your root MCR folder, appears on your system path. To verify that the CTF file that MATLAB Compiler generated in the build process resides in the same folder as your program's file, look at the folder containing the program's file and make sure the corresponding .ctf file is also there.

Warning C:\WORK\R2008B~1\LCC\foo_delay_load.c: 21 static `void function(void) FailedToLoadMCR' is not referenced.  This warning message is produced as indirect output from of an internal delay load job that is only seen by Microsoft Visual C++ compiler users. The message is benign and should be ignored.

warning LNK4248: unresolved typeref token (01000028) for 'mxArray_tag'; image may not run test3.obj.  If you receive this message while compiling an MSVC application that calls a MATLAB Compiler generated shared library, you can safely ignore it. The message is due to changes in the Visual C++® 2005 compiler and will not interfere with successful running of your application. If you desire, you can suppress the message by including an empty definition for mxArray_tag inside your .cpp file (test3.cpp, in this case). For example, if you add the line

struct mxArray_tag {}; 
at the beginning of your code and after the include statements, the warning will not recur.

No Info.plist file in application bundle or no... .  On 64-bit Macintosh, indicates the application is not being executed through the bundle.

  


Free MATLAB Compiler Interactive Kit

Learn how to build standalone executables and C/C++ shared libraries from MATLAB code.


Get free kit

Trials Available

Try the latest version of MATLAB Compiler.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS