Opencv + cuda 5.0: "nvcc : fatal error : '-ccbin': expected a number"

I’m trying to use Cuda 5.0 and opencv 2.4.8 togather. I’ve made a 2 files : main.cpp and

I’m using visual studio 2010 express on a 64bits PC. when i try to compile for the project I get the eror: “nvcc : fatal error : ‘-ccbin’: expected a number”.

What I’m trying to do is to use opencv to load images and videos, then do the image processing in the GPU by lunching kernels.

I’d like to know if it’s possible to do that (opencv + kernels). then if it’s possible how can i fixe this probleme.
Thank you for your help.

VS 2010 Express does not support 64 bit CUDA applications by default, which might be related to the error you’re seeing. If you intend to compile 64 bit apps, do this:

That being said, with a quick Google search, it seems your issue is rather simple, see below for possible solutions.

Most likely this first one will fix the issue you’re having:

The rest are related/for understanding purposes of why you get the error: