How do I create a C shared library from MEX-files using the MATLAB Compiler?
조회 수: 2 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2010년 1월 28일
편집: MathWorks Support Team
2022년 10월 14일
I have one or more MEX-files from which I want to create a C shared library. However, the documentation for MATLAB Compiler only explains how to do this with MATLAB files.
채택된 답변
MathWorks Support Team
2022년 10월 14일
편집: MathWorks Support Team
2022년 10월 14일
Creating a C shared library with MEX-files is analogous to creating one with MATLAB files as in the example located in the MATLAB Compiler Documentation:
In step 2 of Building the Shared Library, instead of MATLAB files, you can specify MEX-files. For example, if you have MEX-files named mex1.dll and mex2.dll on Windows, you would execute the following command:
mcc -B csharedlib:sharedlibname mex1.dll mex2.dll
where "sharedlibname" is the name of the library you wish to create. This command would generate a file sharedlibname.dll that contains functions of mex1 and mex2.
댓글 수: 1
Rahul Goel
2017년 8월 16일
Hi Adam, Please contact MathWorks Technical Support for better assistance on this issue.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!