Is the matlab runtime compatible with files compiled with an older version of the compiler

Dear support,
Is it possible to run a compilation that was compiled with an older MATLAB compiler version (e.g. R2018b or R2016b) with the current Matlab runtime version 2019b?
Kind regards,
Manuel

 Accepted Answer

No. Compiled executables need the runtime for the exact version they were compiled with. For example r2018b Update 2 compiled is not compatible with the runtime for R2018b Update 3: must be an exact match.

5 Comments

Deos the Complied executables has any compatibility to Windows OS requirement? I have created some standalone executables wayback in R2009b bundled with MCR4.11. However, with the current Windows10 - 20H2 version, the standalone applications does not seem to be working. May I kindly know whether there are any workarounds for the same? Thanks.
The compiled executables are MATLAB, just without the command window. An executable compiled with MATLAB Compiler has the same operating system requirements that the version of MATLAB used to compile it has.
The newest version of Windows that R2009bSP1 was supported on, was Windows 7. You might encounter problems on any newer version.
In some cases you can get around the problems by turning on Windows Compatibility Mode for the executable. (But if you happened to use a Parallel Port then you are out of luck, Windows doesn't support the interfaces that were used back in those days.)
One small correction: At least for more recent versions of MATLAB, compiled application are only tied to the MATLAB Runtime release, but not the specific update version.
For example, if you have compiled an application using MATLAB R2021b Update 3, the application will launch with any R2021b version (v9.11) of the MATLAB Runtime. However, whether it will work as expected is dependent on whether the application is dependent on a bug fix in that particular update.

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!