MATLAB: MEX File, UBUNTU, .so files

mex

Hi All, I am trying to use a .cpp file with MEX files. But i have a dependency of .so file. All this is of course in ubuntu.
How do i specify this dependency.
~Cheers!
Neeraj

Best Answer

If I understand you correctly, you have C++ source file(s) and some other object files and you want to build a mex routine from them. If so, simply place all of the files in one directory and then specify all of them on the mex command line. e.g.,
mex sourcefile1.cpp sourcefile2.cpp objectfile1.so objectfile2.so
Related Question