title: 'X86' conflicts with target machine type 'x64'
body: <p>I'm getting the following error:</p>
  
  <blockquote>
    <p>LNK1112: module machine type 'X86' conflicts with target machine type 'x64'</p>
  </blockquote>
  
  <p>I'm working on a 64 bit machine (VS2008) and I have the x64 compiler. I checked that the build is on x64.</p>
  
  <p>Why isn't it compiling? Here's the build log:</p>
  
  <blockquote>
    <p>echo "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1\bin\nvcc.exe"    -gencode=arch=compute_10,code=\"sm_10,compute_10\" -gencode=arch=compute_20,code=\"sm_20,compute_20\"  <strong>--machine 32</strong> -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin"    -Xcompiler "/EHsc /W3 /nologo /O2 /Zi   /MT  "  -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1\include" -maxrregcount=0  --compile -o "x64\Debug/lowWrappers.cu.obj" lowWrappers.cu</p>
  </blockquote>