MATLAB: Do I receive an error about the mclmcrrt7#.dll not being found the first time I run an application generated by MATLAB Compiler 4.x (R14 and above)

dllfoundMATLAB Compilermclmcrrtnot

I do a new install of MATLAB and the MATLAB Compiler on my computer.
On compiling my first application and running it, I get the following error:
 
This application has failed to start because mclmcrrt7#.dll was not found. Re-installing the application may fix this problem.
where # is a number indicating the release since MATLAB Compiler 4.0 (R14).

Best Answer

This is an expected behavior with applications generated by the MATLAB Compiler 4.x (R14 and above).
After a new install, MATLAB updates the system path to include the path to the mclmcrrt7#.dll. However, Windows does not always properly update the path internally until after a reboot.
To work around this issue, reboot your Windows system and execute your application.
Note that this applies only to development machines with MATLAB installed. If you have deployed your application to a machine without the correct version of MATLAB installed, you must install the MATLAB Compiler Runtime as described here: