Invalid MEX-file Error in R2013b
Show older comments
I'm getting the following error:
Mex file entry point is missing.
Please check the (case-sensitive) spelling of mexFunction (for C MEX-files), or the (case-insensitive)spelling of MEXFUNCTION (for FORTRAN MEX-files).
Invalid MEX-file
'C:\Users\sadowsky\Documents\Visual_Studio_2010\Projects\ParamsTree\Debug\ParamsTree_MEX.mexw32':
The specified module could not be found.
From reading answers to similar questions, there seem to be two answers - neither of which work for me.
The first answer is to check the mexFunction syntax, file name, etc. I've done that a thousand times.
The second answer is to use Dependency Walker to identify missing dlls. Dependency Walker flags two missing dlls - libmx.dll and libmex.dll. I checked my system path - it is set to C:\MATLAB\R2013b\bin where the matlab.exe is. The missing dlls are in the subfolder win32, so I added the path C:\MATLAB\R2013b\bin\win32. Dependency Walker now finds the missing dlls, but something else is now missing, and the matlab still doesn't run.
Below is the Dependency Walker screen shot when I set the system path to C:\MATLAB\R2013b\bin

And here is the Dependency Walker screen shot when have both C:\MATLAB\R2013b\bin and C:\MATLAB\R2013b\bin\win32 set as system paths.

Answers (1)
Jan
on 16 Feb 2014
0 votes
The error message is unique and clear: Matlab cannot find the entry point function called "mexFunction". Please 1001 times, if this function is contained in the code.
Whap happens if you compile the function from Matlab using the mex command?
2 Comments
John Sadowsky
on 16 Feb 2014
Edited: John Sadowsky
on 16 Feb 2014
John Sadowsky
on 17 Feb 2014
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) 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!