Building OpenCV problem : 'ptrdiff_t' : is not a member of 'std'
Hi all,
I am trying to build an openCV application in Visual Studio 2010. Have OpenCV 2.4.4. I get the following error during compilation:
\\OpenCV\2.4\include\opencv2/core/core.hpp(81): error C2039: 'ptrdiff_t' : is not a member of 'std'
\\OpenCV\2.4\include\opencv2/core/core.hpp(81): error C2868: 'ptrdiff_t' : illegal syntax for using-declaration; expected qualified-name;
Based on a google search, I tried adding to the core.hpp file.
\#include "cstddef.h"
and separately
\#include "stddef.h"
Both approaches did not work. Has any one run into similar issues? What is the fix?
Thanks.