http://www.mathworks.com/matlabcentral/answers/169911-cpp-file-in-matlab
Hi,
you will need to tell mex where to find the include files, and probably also the library files. Your call should look something like
mex -I"C:\Program Files\opencv\include" Loadimage.cpp -l"C:\Program Files\opencv\lib" -Lopencv.lib
Take a look at the doc for mex and there at the flags "-I", "-L", "-l".
Titus
'Matlab > mex' 카테고리의 다른 글
generate MEX-files using Visual Studio (0) | 2016.09.22 |
---|---|
mex "example_mex_function.cpp" compile error (0) | 2016.09.13 |
Matlab에서 Ctrl+C 처리 (utIsInterruptPending) (0) | 2016.09.13 |
matlab mex memory access (0) | 2016.09.13 |
How do I link a 64-bit MATLAB mex file to OpenCV libraries (0) | 2016.09.13 |