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 件のコメント

Kaustubha Govind
Kaustubha Govind 2013 年 5 月 14 日
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 ExchangeWrite 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