You are on page 1of 3

11/21/12

MathWorks United Kingdom - Why do I receive an error regarding missing mclmcrrt7x.dll when I run my
Accelerating the pace of engineering and science

Why do I receive an error regarding missing mclmcrrt7x.dll when I run my stand-alone application compiled with MATLAB Compiler?
Date Last Modified: Monday, September 10, 2012 Solution ID: Product: Reported in Release: Platform: Operating System: 1-1IW46N MATLAB Compiler R14 Windows Windows Any

Subject:
Why do I receive an error regarding missing mclmcrrt7x.dll when I run my stand-alone application compiled with MATLAB Compiler?

Problem Description:
When I run my stand-alone application that was compiled with MATLAB Compiler on my deployment machine, I receive an error message regarding a missing mclmcrrt7x.dll file (where x is the minor version of the MCR expected to be installed on the target system).

Solution:
mclmcrrt7x.dll is a run-time library needed to run MATLAB Compiler generated applications on deployment machines that do not have MATLAB and MATLAB Compiler installed. This library is installed during the course of the MATLAB Compiler Runtime (MCR) installation. This error typically results from one of two situations: 1. The correct version of MATLAB Compiler Runtime (MCR) is not installed. Applications generated with MATLAB Compiler depend on the version of the run-time library specific to the version of the MATLAB Compiler that generated the application. You can find the install program for the MCR in the following sub directory of the MATLAB installation which created the program.

$ M A T L A B R O O T \ t o o l b o x \ c o m p i l e r \ d e p l o y \ w i n 3 2 \ m c r I n s t a l l e r . e x e or

$ M A T L A B R O O T \ t o o l b o x \ c o m p i l e r \ d e p l o y \ w i n 6 4 \ m c r I n s t a l l e r . e x e (where $MATLABROOT is the MATLAB root directory on your machine, as returned by typing: m a t l a b r o o t

www.mathworks.co.uk/support/solutions/en/data/1-1IW46N/

1/3

11/21/12

MathWorks United Kingdom - Why do I receive an error regarding missing mclmcrrt7x.dll when I run my

at the MATLAB command prompt.) Instructions for installing the MCR are located in the documentation: Deploying to End Users :: Deployment Process (MATLAB Compiler) http://www.mathworks.com/help/compiler/deploying-to-end-users.html Running MCRInstaller.exe on the deployment machine will install the MCR, including the mclmcrrt7x.dll:

$ M C R R O O T \ v $ V E R \ r u n t i m e \ w i n 3 2 \ m c l m c r r t $ V E R . d l l ($MCRROOT is the MATLAB Compiler Runtime root directory that was chosen during the MATLAB Component Runtime installation process. This typically defaults to something like C:\Program Files\MATLAB\MATLAB Compiler Runtime. $VER is the MCR version number without the periods.) The missing mclmcrrt7x.dll error message will result if you have not installed the version of the MCR that corresponds to the version of MATLAB Compiler the application was compiled with. For example, if you have installed the MCR for MATLAB Compiler 4.9 (R2008b), version 7.9 of the mclmccrt DLL will be installed in, for example:

C : \ P r o g r a mF i l e s \ M A T L A B \ M A T L A BC o m p i l e rR u n t i m e \ v 7 9 \ r u n t i m e \ w i n 3 2 \ m c l m c r r t 7 9 . d l l .

For releases prior to R2008a the runtime libraries will be located in a slightly different directory tree:

C : \ P r o g r a mF i l e s \ M A T L A B \ M A T L A BC o m p o n e n tR u n t i m e \

Now, if an application generated using MATLAB Compiler 4.6 (R2007a) is executed on this computer without installing that version of the MCR, the "missing mclmcrrt76.dll" error would result. 2. A second option is that the system's PATH environment variable was not set correctly. During the course of the MATLAB Compiler Runtime installation, the following directory should have been added to your system path:

$ M C R R O O T \ v $ V E R \ r u n t i m e \ w i n 3 2 To work around this issue, manually update the PATH environment variable on your deployment machine to include the following directory:

$ M C R R O O T \ v $ V E R \ r u n t i m e \ w i n 3 2 For instructions on modifying your system PATH environment variable, refer to the solution referenced below. Also note that since these DLLs have different names for each version of the MCR, multiple versions of the MCR can be installed on the same machine.

Related Solutions:
How do I set my system path under Windows? What is the version of the MATLAB Compiler Runtime (MCR) that corresponds to the version of MATLAB Compiler I am using? Do I need to install the MCR on a system that already has MATLAB installed?
www.mathworks.co.uk/support/solutions/en/data/1-1IW46N/ 2/3

11/21/12

MathWorks United Kingdom - Why do I receive an error regarding missing mclmcrrt7x.dll when I run my

Please provide feedback to help us improve this Solution


1994-2012 The MathWorks, Inc. Join the conversation

www.mathworks.co.uk/support/solutions/en/data/1-1IW46N/

3/3

You might also like