Can I call an external shared library (DLL) from a MATLAB MEX-file?
7 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2012-5-31
编辑: MathWorks Support Team
2019-4-11
I would like to call an external shared library (DLL) from a MATLAB MEX-file.
采纳的回答
MathWorks Support Team
2019-4-11
编辑:MathWorks Support Team
2019-4-11
To link an external DLL to a MEX-file, list the DLL's .lib file on the command line.
Here is an example:
mex filename.c libname.lib
Note that when calling the MEX-file from MATLAB, the DLL should be in the same directory as the MEX-file.
3 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!