compiling mex files from Microsoft Visual Studio C++
Mostrar comentarios más antiguos
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 comentario
Kaustubha Govind
el 14 de Mayo de 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?
Respuestas (0)
Categorías
Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!