Can I call an external shared library (DLL) from a MATLAB MEX-file?
조회 수: 8 (최근 30일)
이전 댓글 표시
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
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!