link error when win32 build in windows 7, 64-bit

I’m not too experienced to VC++ configuration, so I would really appreciate replies to be newbie-friendly like “Linker -> Input -> Additional Dependencies, add cutil64.lib…”.

I’m using Windows 7, 64bit laptop with integrated Graphics card.

My sole purpose of non-CUDA-supported laptop is to be able to code and compile. I have no intention of running it on my laptop.

I have installed CUDA 3.1 tookit and SDK for 64 bit.

I was able to compile most of SDK codes both in Win32 and x64 release (although to build in win32, I had to copy cutil32D.lib to the folder).

I had a OpenGL code that compiled in Win32. When I port it into CUDA (aka turning shading language .cg into CUDA kernel .cu for learning purpose),

whenever I build it in Win32, I get errors saying

  • fatal error LNK1112: module machine type ‘x64’ conflicts with target machine type ‘X86’.

I’m not in too much of trouble since I CAN build in x64.

I tried to install 32 bit Toolkit and SDK, but then I could not compile any of CUDA project.

How can I resolve:

fatal error LNK1112: module machine type ‘x64’ conflicts with target machine type ‘X86’,

this issue and still compile in Win32?

Thank you.