I support the Matlab library, which consists of a huge number of MEX files. So far I have created a library with a Matlab script, but now I would like to start using the Microsoft Visual Studio IDE for the entire build process. I got pretty far with the following instructions:
However, these instructions only work with one MEX file. The problem I am facing is how to create multiple .mexw32 targets (or, equivalently .dll) within a single Visual Studio project? Creating a separate project (within the same solution) for MEX files is not an option that I want to consider. These files are considered hundreds.
For those unfamiliar with Matlab, MEX files are extension files written in C ++ and compiled mainly into .dll files with a special extension .mexw32. Each of them exports a single entry point void mexFunction(...). AFAIK, you cannot link them to a single .dll, which I would rather do.
void mexFunction(...)
, MATLAB script. , MATLAB :
mex -f msvc90opts.bat MyMexFile.c
. , , MEX. msvc90opts.bat , MATLAB bin\win32\mexopts.
msvc90opts.bat
bin\win32\mexopts
mex , , :
mex
matlab.exe -wait -sd . -nosplash -nojvm -r "BuildMex, exit"
, MEX - . , , . , . , .
, .
Source: https://habr.com/ru/post/1786947/More articles:Using jQuery to remove empty rows from HTML tables - jqueryRedis Blocking Save - ruby | fooobar.comSimple .prototype usage scenario - javascriptAutocomplete on Combobox onkeypress event eats Enter key - c #How can I start to diagnose a bad Rails application running on mysql? - performanceВеб-развертывание 2.0 не может включить проверку подлинности Windows? - iisASP.NET: Combres calls '$ is undefined' when jQuery is compressed - javascriptMake all available EditText? - javaPHP: Constants & Bitwise Separator as Default Argument for Method - bit-manipulationhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1786952/mercurial-managing-multiple-repositories&usg=ALkJrhgUFTOdxZYQO1HAbRh15bBzTDZwZAAll Articles