title: LNK1104 error when creating 64bit executable with glut,VS2008
body: <p>I have so far managed to create with Visual Studio 2008 a 32-bit executable of an OpenGL C code (last code in <a href="http://www.glprogramming.com/red/chapter01.html" rel="nofollow">http://www.glprogramming.com/red/chapter01.html</a>) that uses glut (I work in Windows 7 64 bits).</p>
  
  <p>I installed glut files as follows:</p>
  
  <p>glut.h          in    C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\gl
  glut32.lib    in    C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib
  glut32.dll    in    C:\Windows\System32</p>
  
  <p>and I have used the command line instruction cl:
  call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
  cl example-opengl.cpp</p>
  
  <p>So far, so good...</p>
  
  <p>I am now trying to create a 64-bit executable.</p>
  
  <p>Based on what I found on the Internet, I tried two installations:</p>
  
  <p>glut.h          in    C:\Program Files (x86)\Microsoft SDKs\Windows\v5.0\Include\GL
  glut32.lib    in    C:\Program Files (x86)\Microsoft SDKs\Windows\v5.0\Lib\
  glut32.dll    in    C:\Windows\SysWOW64</p>
  
  <p>and also:</p>
  
  <p>glut.h          in    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include\GL
  glut32.lib    in    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib
  glut32.dll    in    C:\Windows\SysWOW64</p>
  
  <p>and I try to compile with:
  call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat"
  cl example-opengl.cpp</p>
  
  <p>For both installations, there is an error from the linker:
  LINK : fatal error LNK1104: cannot open file 'glut32.lib'</p>
  
  <p>What is the way to fix this before I tear off all my hair?...   ;-)</p>
  
  <p>Notice that I am using only a shell, not the IDE of Visual Studio.</p>
  
  <p>Many thanks in advance for your help.
  Manuel</p>