title: Need more explanation on LNK2038 mismatch dectected for '_MSC_VER'
body: <p>I inherited an old program from a colleague that is no longer with the company. It's an CPLEX optimization we use. It was built in house in C++ using Visual Studio 2005 and CPLEX121. The server where it's located is being decommissioned and we're trying to migrate it to a new server. I'm trying to rebuild the new application in Visual Studio 2013 using CPLEX126 for the optimizations. </p>
  
  <p>Error I get is:</p>
  
  <blockquote>
    <p>Description:</p>
    
    <blockquote>
      <p>error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1800' in (project name).obj </p>
    </blockquote>
    
    <p>File: </p>
    
    <blockquote>
      <p>ilocplex.lib(ilocplex.obj)</p>
    </blockquote>
  </blockquote>
  
  <p>There are quite a few of these mismatches. I'm new to Visual Studio and C++, but I've managed to work through getting the CPLEX links updated, and now this error is happening. </p>
  
  <p>From this forum post:
  <a href="https://stackoverflow.com/questions/19575747/error-lnk2038-mismatch-detected-for-msc-ver-value-1600-doesnt-match-valu">error LNK2038: mismatch detected for &#39;_MSC_VER&#39;: value &#39;1600&#39; doesn&#39;t match value &#39;1700&#39; in CppFile1.obj</a></p>
  
  <p>I've been able to deduce there might be something I can do to the toolset or "recompile my libraries" this seemed to work for some people on the last post, but all I need more specific help on how exactly to do that. </p>
  
  <blockquote>
    <p>No, it's the object files. What the compiler emits. They appear to be inside the .lib file. You'll need to recompile it. –  David Heffernan Oct 24 '13 at 20:40 </p>
    
    <p>Hi David, iam new to c++ .Iam basically a c# programmmer. Can you please elaborate the comments –  user1654136 Oct 24 '13 at 20:43 
    2</p>
    
    <p>The compiler is telling you to recompile Projectname1.lib with VS2012. –  David Heffernan Oct 24 '13 at 20:48  </p>
  </blockquote>
  
  <p>I have no idea what that means and I don't have enough reputation to comment.</p>
  
  <p>Also, </p>
  
  <blockquote>
    <p>for each project in your solution make sure that 
    Properties > Config. Properties > General > Platform Toolset 
    is one for all of them, v100 for visual studio 2010, v110 for visual studio 2012
    you also may be working on v100 from visual studio 2012</p>
  </blockquote>
  
  <p>the response is "That worked for me" </p>
  
  <p>My Project's Platform Toolset is "Visual Studio 2013 (v120)". Do I need to add some other toolset? there's no other option in the dropdown.</p>
  
  <p>There is also a block of code in the .cpp file:</p>
  
  <p><code>// set up Visual Studio version
      #define _VS2005_
      # if _MSC_VER &lt; 1400
         # undef _VS2005_
      # endif</code></p>
  
  <p>I also don't know what this is doing to see if it is causing the error. </p>