error while Compiling CUDA using nvcc

I’m trying to compile using nvcc a test program on Windows 7 x64 via Command Prompt using this command:
nvcc test.cu
I get the following output and then this error message:

test.cu
tmpxft_00000d14_00000000-3_test.cudafe1.gpu
tmpxft_00000d14_00000000-8_test.cudafe2.gpu
test.cu
tmpxft_00000d14_00000000-3_test.cudafe1.cpp
tmpxft_00000d14_00000000-14_test.ii
LINK : fatal error LNK1104: cannot open file ‘a.exe’

What would be causing this error and how can I solve it?