Can I call an external shared library (DLL) from a MATLAB MEX-file?

8 ビュー (過去 30 日間)
MathWorks Support Team
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
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 件のコメント
Walter Roberson
Walter Roberson 2018 年 10 月 25 日
The link to f13120 is obsolete.
Stefanie Schwarz
Stefanie Schwarz 2019 年 4 月 11 日
@Walter I removed it. Thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

リリースが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by