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.

 采纳的回答

Kaustubha Govind
Kaustubha Govind 2011-7-31

1 个投票

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 个评论

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.

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by