Invalid MEX-file: The specified procedure could not be found.

6 views (last 30 days)
Trying to run a 64 bit compiled S-function in Matlab Simulink 2014a (64bit) except it gives the error: Invalid MEX-file: The specified procedure could not be found.
The Mex file is in the same directory as the model and I have checked the spelling of the file names.
It was compiled using 2014b, not 2014a, can s functions compiled in 2014b be run in 2014a?
I am using windows 8.1 Pro and Dependency Walker identified that the following .dll files were missing:
API-MS-WIN-CORE-KERNEL32-PRIVATE-L1-1-1.DLL API-MS-WIN-CORE-PRIVATEPROFILE-L1-1-1.DLL API-MS-WIN-SERVICE-PRIVATE-L1-1-1.DLL API-MS-WIN-CORE-SHUTDOWN-L1-1-1.DLL EXT-MS-WIN-NTUSER-UICONTEXT-EXT-L1-1-0.DLL IESHIMS.DLL
Under System 32, which is specified in the Matlab path, I can find all except:
API-MS-WIN-CORE-SHUTDOWN-L1-1-1.DLL EXT-MS-WIN-NTUSER-UICONTEXT-EXT-L1-1-0.DLL
Are their any known solutions to this? I have also installed the C++ redistributable packages but this has not improved things.
Thanks
  1 Comment
Tim O'Connell
Tim O'Connell on 23 Mar 2016
I have the exact same problem, word for word, as the original poster. Have there been any solutions to this problem?

Sign in to comment.

Answers (1)

James Tursa
James Tursa on 23 Mar 2016
mex routines, in general, are MATLAB version specific. You might be lucky and be able to get a mex routine compiled in one version of MATLAB to run under a different version of MATLAB, but it is not guaranteed to work. The best solution (and perhaps only solution depending on your circumstances) is to re-compile the mex routine using the version under which it will be run.

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!