I compiled an M-file on my laptop, obtaining an EXE file (lets say myexe.exe
). I have MATLAB 2011b installed.
If I double click on myexe.exe
, or if I run it from MATLAB command prompt with !myexe.exe
, a window pops up saying:
Could not find version 7.16 of MCR. Attempting to load mclmcrrt7_16.dll. Please install the correct version of the MCR.
Now, MATLAB Compiler Runtime (MCR) should be a standalone set of shared libraries that enables the execution of compiled MATLAB applications or components in computers in which MATLAB is not installed. I have MATLAB on my PC so why is it complaining about MCR?
Also, I copied this file to another computer in which I do not have MATLAB but I have MCR 8.2, it gives me the same error. I thought MCR was ensuring backward compatibility. Should I copy the MCR version 7.16 from my laptop to my PC and install it (I saw it is located in C:\Program Files\MATLAB\R2011b\toolbox\compiler\deploy\win64\MCRInstaller.exe
, and I saw here that 7.14 is the MCR corresponding to MATLAB 2011b)?
What about my Laptop? Do I have to install MCR version 7.16 also there? I don't get why I should.
thanks A.