Warning when executing Matlab executable application built with Matlab 2022b

6 visualizzazioni (ultimi 30 giorni)
I am building a Matlab executable with Matlab 2022b (including Matlab Compiler). The build is ok and the application works, but when I run it from Windows command prompt or powershell, I get this warning:
Warning: Executing startup failed in matlabrc.
This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was:
MATLAB:class:InvalidSuperClass
The specified superclass 'Simulink.IntEnumType' contains a parse error, cannot be found on MATLAB's search path, or is shadowed by another file with the same name.
This also happen from another pc with another installation of Matlab, so it does not seem to be a specific problem of my pc. How can I get rid of the warning?

Risposte (1)

Jacob Mathew
Jacob Mathew il 3 Ago 2025
Hey @Marco,
As the error suggests, "MATLAB:class:InvalidSuperClass, The specified superclass 'Simulink.IntEnumType' contains a parse error, cannot be found on MATLAB's search path, or is shadowed by another file with the same name.", there appears to be a problem with linking the class file Simulink.IntEnumType.
You can refer to the following MATLAB Answers Post by MathWorks Support Team to solve the error:
  2 Commenti
Marco
Marco il 6 Ago 2025
Thank you for the answer. The issue is still unclear to me. I read that the Simulink IntEnumType is not compatible with Matlab Compiler and it should not be linked. Is this correct? I am trying to unlink it to prevent the warning. When using the which command I get:
which -all Simulink.IntEnumType
C:\Program Files\MATLAB\R2022b\toolbox\simulink_standalone\shared\+Simulink\IntEnumType.p % Simulink.IntEnumType constructor
is this correct?
If I restore the default paths, this will break some application that I use on top of Matlab and I do not want to do it, but I am also not sure this will fix my issue.
Do you have further suggestions on how to get rid of the warning? In the project that I am trying to build the Matlab executable there is also a Simulink part, where possibly the IntEnum are found, but that part is not relevant for my Matlab executable. Shall I try to remove the Simulink files of this project from the Matlab path?

Accedi per commentare.

Categorie

Scopri di più su MATLAB Compiler in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by