title: library machine type 'x86' conflicts with target machine type 'X64'
body: <p>I'm using CUDA 9.2 to simulate ray tracing with OpenGL.</p>
  
  <p>I just found out that since my version of CUDA does not support x86 build, so I should use x64 library.</p>
  
  <p>But there's still probrem.</p>
  
  <p>All glut functions that require opengl32.lib make <strong>"unresolved external symbol error"</strong>.</p>
  
  <p>I thought the linker link the opengl32.lib file from x86 folder, but</p>
  
  <p><strong>C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17134.0\um\x64\OPENGL32.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'X64'</strong></p>
  
  <p>as you can see, my opengl32.lib was definitely in x64 folder.</p>
  
  <p>How can I fix this problem?
  How can I use openGL with CUDA?</p>