Why won't OpenCV compile in NVCC?

Posted by zenna on Stack Overflow See other posts from Stack Overflow or by zenna
Published on 2009-12-04T15:15:59Z Indexed on 2010/04/19 4:53 UTC
Read the original article Hit count: 1037

Filed under:
|
|
|
|

Hi there

I am trying to integrate CUDA and openCV in a project. Problem is openCV won't compile when NVCC is used, while a normal c++ project compiles just fine. This seems odd to me, as I thought NVCC passed all host code to the c/c++ compiler, in this case the visual studio compiler.

The errors I get are?

c:\opencv2.0\include\opencv\cxoperations.hpp(1137): error: no operator "=" matches these operands operand types are: const cv::Range = cv::Range

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)" function "abs(float)" function "abs(double)" function "abs(long)" function "abs(int)" argument types are: (ptrdiff_t)

So my question is why the difference considering the same compiler (should be) is being used and secondly how I could remedy this.

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about cuda