I receive "Could not find version 9.11of the MATLAB Runtime" when running my compiled app, my MATLAB Runtime is 9.13. so this specifically need 9.11 to be run?

168 views (last 30 days)
I have a file and I want to open it but it gives me a runtime error. My previous version was 2021a.
I found a similar question on mathwork so I went to this link to check my runtime:
my version is 2022b and this error coresponds to 2021b. So, I should uninstall my current version to a 2021b to fix it? and there is no other way?
but why this cant be run on higher versions?

Accepted Answer

Image Analyst
Image Analyst on 18 Jan 2023
You are trying to run a compiled program somebody made with R2021b. It doesn't matter what version you have but if you don't have the MATLAB 2021b development environment program on your computer, then you'll need to install the r2021b (9.11) run time library. You can get all/any run-time libraries here:
You can have multiple development environment versions and multiple run-time library versions on your computer simultaneously. The main thing is that if you are trying to run a compiled standalone program built with some particular version then you must have that same version of the run-time library on your computer, or the development IDE for that version. You don't have either, so to fix, you need to get the 9.11 from the link I gave above.
The reason that the run-time library needs to be matched to the developement version it was compiled with is because sometimes new functions are introduced (and so they won't be in older versions), and sometimes old functions are finally deprecated/removed. So you need a run-time library that has exactly the same set of functions that were in the version the person compiled it with.

More Answers (0)

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!