MEX File, UBUNTU, .so files

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

 Accepted 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

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!