Can I call an external shared library (DLL) from a MATLAB MEX-file?
8 ビュー (過去 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!