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 Comment

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?

Sign in to comment.

Answers (0)

Categories

Products

Asked:

on 14 May 2013

Community Treasure Hunt

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

Start Hunting!