Not able to include files to my .cpp file
1 view (last 30 days)
Show older comments
Akshay Iyangar
on 1 May 2016
Commented: Akshay Iyangar
on 1 May 2016
Hello
Can some one please help me with this ?
I am trying to include .h files from "/Users/akshayiyangar/Desktop/kinect_home/OpenNI/Include" to my .cpp file
i tried using this command
mex -L"/Users/akshayiyangar/Desktop/kinect_home/OpenNI/Include/" mxNiChangeDepthViewPoint.cpp
but i am getting this error.
Error using mex
/Users/akshayiyangar/Documents/MATLAB/Kinect_Matlab_version2/OpenNI1/Mex/mxNiChangeDepthViewPoint.cpp:3:10:
fatal error: 'XnOpenNI.h' file not found
#include <XnOpenNI.h>
^
1 error generated.
0 Comments
Accepted Answer
Walter Roberson
on 1 May 2016
mex -I"/Users/akshayiyangar/Desktop/kinect_home/OpenNI/Include/" mxNiChangeDepthViewPoint.cpp
Use -I to give the directory for Include files. Use -L to give the directory for Libraries
More Answers (0)
See Also
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!