compiling mex files from Microsoft Visual Studio C++
Afficher commentaires plus anciens
Hi,
I'm using Microsoft Visual Studio 2010 to compile mex files in C++. I'm using a .c file with an entry function
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
and also using a .def file to name the mex Function, i.e.
LIBRARY RemoteLoggingUtilityMatlab.mexw64
EXPORTS
mexFunction
This matlab function basically starts a thread that does communication with another program and also does computations.
This works great if i am writing one matlab function RemoteLoggingUtilityMatlab.mexw64 to access the thread and its data. How do I set up my project such that i can compile two or more mex functions which access this same thread in the same process?
Thanks, Serena
1 commentaire
Kaustubha Govind
le 14 Mai 2013
I don't know much about Visual Studio, but don't you need multiple project files if you need to generate multiple binaries? Is it possible to general multiple DLLs (MEX-files are essentially DLLs underneath) from one project?
Réponses (0)
Catégories
En savoir plus sur Write C Functions Callable from MATLAB (MEX Files) dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!