title: Fix LNK2019: unresolved external symbol with freeglut
body: <p>Using <a href="http://surflab.cise.ufl.edu/wiki/Getting_Started_with_OpenGL_in_VisualC++_2010" rel="nofollow">this manual</a>, I tried to get freeglut OpenGL application to compile on my computer. This means I:</p>
  
  <ul>
  <li>Copied files from freeglut archive to MS program files folder</li>
  <li>Specified <code>freeglut.lib</code> in additional dependencies</li>
  <li>Set explicitly the freeglut.lib path in libraries folders</li>
  </ul>
  
  <p>But all takes no effect. The C++ header files are found right, but the libraries not - so I get these errors:</p>
  
  <pre><code>1&gt;OpenglTest.obj : error LNK2019: unresolved external symbol __imp__glutMainLoop@0 referenced in function _wmain
  1&gt;OpenglTest.obj : error LNK2019: unresolved external symbol __imp__glutSpecialFunc@4 referenced in function _wmain
  1&gt;OpenglTest.obj : error LNK2019: unresolved external symbol "void __cdecl specialKeys(int,int,int)" (?specialKeys@@YAXHHH@Z) referenced in function _wmain
  1&gt;OpenglTest.obj : error LNK2019: unresolved external symbol __imp__glutDisplayFunc@4 referenced in function _wmain
  1&gt;OpenglTest.obj : error LNK2019: unresolved external symbol __imp__glutInitDisplayMode@4 referenced in function _wmain
  1&gt;OpenglTest.obj : error LNK2019: unresolved external symbol __imp____glutInitWithExit@12 referenced in function _glutInit_ATEXIT_HACK@8
  1&gt;OpenglTest.obj : error LNK2019: unresolved external symbol __imp____glutCreateWindowWithExit@8 referenced in function _glutCreateWindow_ATEXIT_HACK@4
  1&gt;OpenglTest.obj : error LNK2019: unresolved external symbol __imp__glutSwapBuffers@0 referenced in function "void __cdecl display(void)" (?display@@YAXXZ)
  </code></pre>
  
  <p>So my questions:</p>
  
  <ol>
  <li>Could you guess what may be wrong? (not easy, but I cannot find this out obviously)</li>
  <li>Is there some other manual google didn't find, but better than the one I used?</li>
  <li>Is there some other archive I should download?</li>
  </ol>
  
  <p>My C++ code comes <a href="http://www.wikihow.com/Make-a-Cube-in-OpenGL" rel="nofollow">from here</a>. All functions are well found in freeglut header files. Just the libraries are missing.</p>