Compilation Failures

You typically compile your MATLAB® code on a development machine, test the resulting executable on that machine, and deploy the executable and MATLAB Runtime to a test or customer machine without MATLAB. The compilation process performs dependency analysis on your MATLAB code, creates an encrypted archive of your code and required toolbox code, generates wrapper code, and compiles the wrapper code into an executable. If your application fails to build an executable, the following questions may help you isolate the problem.

 Did you compile with the verbose flag?

 Are you compiling within or outside of MATLAB?

 Does a simple read/write application such as "Hello World" compile successfully?

 Have you tried to compile any of the examples in MATLAB Compiler help?

 Did the MATLAB code compile successfully before this failure?

 Are you receiving errors when trying to compile a standalone executable?

 Are you receiving errors when trying to compile a shared library?

 Is your MATLAB object failing to load?

 If you are compiling a driver application, are you using mbuild?

 Are you trying to compile your driver application using Microsoft Visual Studio or another IDE?

 Are you importing the correct versions of import libraries?

 Do you get the MATLAB:I18n:InconsistentLocale Warning?

Was this topic helpful?