Info
此问题已关闭。 请重新打开它进行编辑或回答。
problem in running a m-file
1 次查看(过去 30 天)
显示 更早的评论
Hello
I have a m-file(comdll.m) with following functions:
tic
loadlibrary('comdll','comheader');
calllib('comdll','initialize',1,1);
unloadlibrary('comdll');
toc
when I run this m-file i see in command window:
>> comdll
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:\...comdll.dll': .
what is the problem?
0 个评论
回答(3 个)
Kaustubha Govind
2012-10-26
You should probably rename your .m file (comdll.m) so that it doesn't clash with commdll.dll. If you type which commdll in the MATLAB command window, you should see that it is picking up the DLL over your MATLAB script. This is because in older versions of MATLAB, MEX functions used to have .DLL extensions on Windows.
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!