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

조회 수: 8 (최근 30일)
I would like to call an external shared library (DLL) from a MATLAB MEX-file.

채택된 답변

MathWorks Support Team
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
Walter Roberson
Walter Roberson 2018년 10월 25일
The link to f13120 is obsolete.
Stefanie Schwarz
Stefanie Schwarz 2019년 4월 11일
@Walter I removed it. Thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

아직 릴리스를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by