compiling mex files from Microsoft Visual Studio C++

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

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?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

제품

질문:

2013년 5월 14일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by