0

I generate C++ code using Simulink; Simulink builds file.exe but it doesn't run. The problem is:

the program can't start because libmx.dill is missing from your computer. Try reinstalling the program to fix this problem.

By the way the file libmx.dll already exists in the Matlab path. How can I fix it?

rcs
  • 67,191
  • 22
  • 172
  • 153
Deviltrigger
  • 63
  • 2
  • 12

1 Answers1

0

If you try running the exe from within MATLAB using

>> system('my.exe');

does it work?

If yes, then the most likely cause is that the directory containing libmx.dll isn't on your system path.

Phil Goddard
  • 10,571
  • 1
  • 16
  • 28