mex readOBJ.cpp ... -I../../include ... -I/opt/local/include/eigen3 %% Change this path to point to your copy of Eigen