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

8 visualizaciones (últimos 30 días)
I would like to call an external shared library (DLL) from a MATLAB MEX-file.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 11 de Abr. de 2019
Editada: MathWorks Support Team el 11 de Abr. de 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 comentarios
Walter Roberson
Walter Roberson el 25 de Oct. de 2018
The link to f13120 is obsolete.
Stefanie Schwarz
Stefanie Schwarz el 11 de Abr. de 2019
@Walter I removed it. Thanks!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

Aún no se ha introducido una versión.

Community Treasure Hunt

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

Start Hunting!

Translated by