c++ - Mex compilation macro -


i wish include header file when code compiled via mex command in matlab. if it's compiled directly visual studio not want included.

is there macro can that?

i'd of sort:

#ifdef mex_compile_flag #include "mexdependent.h" #end 

you can use macro matlab_mex_file this. mex.h work properly, macro must defined if , if compiled object linked mex file. mex command makes sure define when calls compiler.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -