Error calling generated sFunction - How to add dependencies?

1 view (last 30 days)
Hi, I have a Simulink model which was compiling successfully recently, I'm suddenly getting errors saying my mex-file is invalid:
Error calling generated SFunction, Workflow_Simulink_Model_sfun. Invalid MEX-file 'C:\Users\mm14\Documents\MATLAB\Workflow_Simulink_Model_sfun.mexw64': C:\Users\mm14\Documents\MATLAB\Workflow_Simulink_Model_sfun.mexw64 is not a valid Win32 application.
Here's what I tried to do: -Deleted the splrj folder and the _sfun.mexw64 file so that they are regenerated when the model tries to compile again. -Installed dependancy walker and identified the follow dependencies are missing: SF_RUNTIME.dll LIBMX.dll LIBMEX.dll LIBUT.dll LIBMWMATHUTIL.dll
I dont know what to do now that I know which dependencies are missing. This is a relatively new subject for me. How can I solve this? Thanks

Answers (0)

Categories

Find more on MATLAB Compiler 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!