Cpp integration problem problem with extern C declaration

I am having problem with my cpp / CUDA integration. I am looking at the cppIntegration example to get some clues, but a problem has occured.

In Main declaration i have:

#include "cutil.h"

extern "C" void

runTest(const int argc, const char** argv, char* data, int2* data_int2, unsigned int len);

and in main{} i do the following call:

runTest(argc, (const char**)argv, data, data_int2, len);

with correct input.

I have a cuda_setup.cu containing:

#include <cutil.h>

#include <cuda_kernel.cu>

//function

extern "C" void

runTest(const int argc, const char** argv, char* data, int2* data_int2, unsigned int len)

{

//Memory allocation and kernel execution

}

the kernel itself is in cuda_kernel.cu.

The error I am facing when trying to do the function call is:

I am running VS2005 under Vista32. Any ideas?

The problem was solved.

Problem was the cuda_setup.cu had the incorrect paths under the General tab in Configuration Properteis → Custom Build Step.

I took the paths and entries from the cppIntegration example and it worked.

Thanks for the example!