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

8 Ansichten (letzte 30 Tage)
I would like to call an external shared library (DLL) from a MATLAB MEX-file.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 11 Apr. 2019
Bearbeitet: MathWorks Support Team am 11 Apr. 2019
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 Kommentare
Walter Roberson
Walter Roberson am 25 Okt. 2018
The link to f13120 is obsolete.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Produkte


Version

Noch keine Version eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by