How do I use the MATLAB Compiler to create a compiled component and run it with an older version of the MATLAB Compiler Runtime (MCR)?
Show older comments
I would like to be able to execute my compiled code with previous versions of MCR. I would also like to know if an application compiled with an older version of the MATLAB Compiler will run with a newer MCR.
Accepted Answer
More Answers (1)
Image Analyst
on 27 Apr 2022
0 votes
If you're using a newer version of MATLAB, you may be using a MATLAB function that did not exist yet in the older run-time library you'd like to use. Therefore you need to use the matching run-time library to make sure all your functions will be able to run. Likewise, some functions are removed.
For example let's say your code uses groupsummary() which was introduced in r2018a. If you compiled and deployed your program, and tried to use an MCR run-time library from r2017b, it would not be able to find groupsummary() so your program would not be able to run properly. For that reason you need to install a matching MCR.
Categories
Find more on Deploy to C++ Applications Using mwArray API (C++03) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!