I am trying to integrate CUDA into a OpenCV project. However when compiling I get a couple of errors.
c:\opencv2.0\include\opencv\cxoperations.hpp(2469): error: more than one instance of overloaded function “std::abs” matches the argument list:
function “abs(long double)”
argument types are: (ptrdiff_t)
c:\opencv2.0\include\opencv\cxoperations.hpp(1137): error: no operator “=” matches these operands
operand types are: const cv::Range = cv::Range
I am a bit confused as I thought that my host code would be passed to the Visual Studio compiler, which on its own in a normal C++ compiles OpenCV just fine.
Any ideas what is happening here, and how to remedy?