Simulink error: Unable to locate 'mexopts.bat'

1 view (last 30 days)
Kenneth
Kenneth on 8 Sep 2013
Commented: Auday on 18 Sep 2014
Hi guys, Im working on a Simulink model that contains some embedded function blocks, but whenever I try running it, it always stops compiling & gives me the message:
Unable to locate 'mexopts.bat', and therefore cannot determine which compiler to use for simulation builds.
Use 'mex -setup' to select a supported compiler.
How do i fix this error? Im running Matlab R2010a, & have gone through all the steps of installing Visual C++ 2010 express, & patched it with the patch provided by Mathworks. Before running the Simulink block I've used Mex -Setup & selected the C++ 2010 compiler, I've even tried using a previous version (Visual C++ 2008 Express), but I still get the same error.
Can anyone shed some light on this situation? Any help at all is appreciated.
  2 Comments
Kaustubha Govind
Kaustubha Govind on 9 Sep 2013
Could you please paste the complete response of "mex -setup".
Auday
Auday on 18 Sep 2014
I have the same error in my system

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Functions 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!