Can I call an external shared library (DLL) from a MATLAB MEX-file?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 31 de Mayo de 2012
Editada: MathWorks Support Team
el 11 de Abr. de 2019
I would like to call an external shared library (DLL) from a MATLAB MEX-file.
Respuesta aceptada
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
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!