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

8 vues (au cours des 30 derniers jours)
I would like to call an external shared library (DLL) from a MATLAB MEX-file.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 11 Avr 2019
Modifié(e) : MathWorks Support Team le 11 Avr 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 commentaires
Walter Roberson
Walter Roberson le 25 Oct 2018
The link to f13120 is obsolete.
Stefanie Schwarz
Stefanie Schwarz le 11 Avr 2019
@Walter I removed it. Thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

Aucune version saisie pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by