Error Prj0019 - A Tool produced an error code when compiling with Cuda Build Rule..."

I’m fairly new to CUDA, but I have installed everything and made sure it all works, I used a wizard to set up a Build Rule and add the right directories and stuff.
The problem is, that when I write my program, it compiles until it reaches the kernel, then it comes up with an error:

1>C:/Users/hamnett/AppData/Local/Temp/tmpxft_00000340_00000000-9_gpu_core.cpp3.i(0): Error: Formal parameter space overflowed in function _Z10testKernelPfS_S_S_S_S_ffffffffffffffffffffffffffffffffff
1>Project : error PRJ0019: A tool returned an error code from “Compiling with CUDA Build Rule…”

Anyone got any ideas as to how I can fix this?

Thankyou in advance