CUDA Linker fail when using VS2010.

Hi,

I am trying to use vs2010 to write a static library that uses CUDA.

And I have multiple .cu files. I have set the Generate Reallocatable Device code to Yes.
But after compiling, nvcc said it cannot find the device-link.obj file.

Has anybody got the dynamic linking working on a visual studio IDE?
Or is it because the project is a library(lib) that it’s not working?

If you can make do without the IDE, the simple example I posted in this thread may help to get on the right track:

https://devtalk.nvidia.com/default/topic/526645/how-to-create-a-static-lib-for-device-functions-using-cuda-5-0-/