How do I create a C shared library from MEX-files using the MATLAB Compiler?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 28 Jan. 2010
Bearbeitet: MathWorks Support Team
am 14 Okt. 2022
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.
Akzeptierte Antwort
MathWorks Support Team
am 14 Okt. 2022
Bearbeitet: MathWorks Support Team
am 14 Okt. 2022
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 Kommentar
Rahul Goel
am 16 Aug. 2017
Hi Adam, Please contact MathWorks Technical Support for better assistance on this issue.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu C Shared Library Integration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!