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.,
The unresolved external symbols errors indicate that during the link-stage of compiling the MEX-file, these symbols are not available.
For the qpip_sub, this most probably means, you need to add the source-file with that function to the MEX command.
For the dcopy (a BLAS function?), this most probably means, you want to link to the BLAS library that is shipping with MATLAB, seethis documentation page for more information regarding compiling MEX-files that use BLAS functions.
Best Answer