First time here? Check out the FAQ!
May it's to late : ) but for me the answer was: type include "opencv2/core/private.hpp" in mat.inl.hpp file