title: Linkage error with glui32.lib and libcd.lib on Visual Studio
body: <p>I am trying to port a (very) old project of mine from Visual Studio 6 to Visual Studio 2010.</p>
  
  <p>The project is an OpenGL application, and as such, it uses the following libraries (amongst others):</p>
  
  <ul>
  <li>glu32.lib</li>
  <li>glui32.lib</li>
  <li>glut32.lib</li>
  <li>opengl32.lib</li>
  </ul>
  
  <p>The <code>glui32.lib</code> library links the <code>libcd.lib</code> library, which is not supported on Visual Studio 2010.</p>
  
  <p>So I need to find a version of the <code>glui32.lib</code> library, which links the <code>libcmtd.lib</code> library instead.</p>
  
  <p><strong>My questions are:</strong></p>
  
  <ul>
  <li>Is there any such version of the <code>glui32.lib</code> library?</li>
  <li>If yes - where can I download it?</li>
  <li>If no - can I use the <code>libcd.lib</code> library on Visual Studio 2010?</li>
  <li>If yes - where can I download it?</li>
  <li>If no - is there any other way for me to solve this linkage error?</li>
  </ul>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I'm leaving the answer below as the accepted one, but here is a workaround for porting an OpenGL project from Visual Studio 6 to Visual Studio 2010 (after creating the project in Visual Studio 2010):</p>
  
  <ul>
  <li>Right click the project and choose <em>Properties</em>.</li>
  <li>Open <em>Configuration Properties --> C/C++ --> Preprocessor</em>.</li>
  <li>In the <em>Preprocessor Definitions</em> entry, add <strong>GLUT_BUILDING_LIB</strong>.</li>
  <li>In the <em>Runtime Library</em> entry, choose <strong>Multi-threaded (/MT)</strong> or <strong>Multi-threaded Debug (/MTd)</strong>.</li>
  <li>Open <em>Configuration Properties --> Linker -->Input</em>.</li>
  <li>In the <em>Additional Dependencies</em> entry, add <strong>glu32.lib;glui32.lib;glut32.lib;opengl32.lib</strong>.</li>
  <li>In the <em>Ignore Specific Default Libraries</em> entry, add <strong>libcd.lib</strong>.</li>
  </ul>