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

 채택된 답변

James Tursa
James Tursa 2011년 6월 9일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

태그

질문:

2011년 6월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by