64bit CUDA, WIN7, VS2008SP1, MATLAB2009a-->LNK1112

I successfully compiled .cu files under 64bit WIN7, CUDA3.2, VS2008, MATLAB2009a several days ago

following the configuration in The Official NVIDIA Forums | NVIDIA

but now I meet such error:

CUDA.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' 

  D:\PROGRA~2\MATLAB\R2009A\BIN\NVMEX.PL: Error: Link of 'CUDA.mexw64' failed.

Yesterday I installed the VS2008 SP1 patch and Parallel Nsight, but I don’t think such changes lead to the error.

I have tried to reinstall the driver and CUDA Toolkit, and recopy vcvarsamd64.bat into VS root, but it doesn’t work.

By the way, I can compile files in VS2008SP1 now working with CUDA.

I don’t know what I did result in such error and what else I can do now.

Thanks.