setting target and module machine on Windows without using VS 2010


I would like to write CUDA programs from scratch without using VS 2010. I have CUDA for win32 installed. But when I try to compile, I get:

LNK1112 fatal error module machine type x86 conflicts with target machine x64

Any suggestions please?