Invalid Mex File

Hi, I am trying to run a package named 'chronux' and getting the following error:
??? Invalid MEX-file 'C:\chronux\spikesort\mex\fast_kmeans_step.dll': The
specified procedure could not be found.
.
Error in ==> ss_kmeans at 141 [assignlist, bestdists, clustersizes, centroid] = ...
Error in ==> ss_outliers at 81 spikes = ss_kmeans(spikes, opts);
Error in ==> SpikeSortingDemo at 155 spikes = ss_outliers(spikes);
Can anyone please tell me how can I solve this problem. Thank you very much in anticipation of an early reply.

 Accepted Answer

Kaustubha Govind
Kaustubha Govind on 31 Jul 2011

1 vote

Also, please note that the .dll extension for MEX-files has long been deprecated, and support for these files will be discontinued in a future version of MATLAB. If you have access to the source code, please re-compile it in a newer version of MATLAB. If the DLL was provided to you by someone else, please consider contacting them for a new version. See Running MEX-Files with .DLL File Extensions on Windows 32-bit Platforms for more information.

2 Comments

Though the error was about the specified "procedure" could not be found, rather than the specified "module". Would the causes be the same?
I notice that the user is trying to work with a .dll file instead of a .mex32. Depending on the version of MATLAB being used, using a mex'd .dll might not be allowed now.
Good catch! The causes of the error may be slightly different, but I think Dependency Walker will still be useful to determine the errant dependency.
Regarding the DLL extension. Yes, thanks for bringing that to my attention. I will edit my answer to add information about that.

Sign in to comment.

More 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!