title: memcmp linker error Visual Studio 2015
body: <p>I have a visual studio 2012 c++ project.
  I recently uninstalled it and installed visual studio 2015 and upgraded the project.
  When i am building the project, getting error as shown below:</p>
  
  <p>Error   LNK2019 unresolved external symbol _memcmp referenced in function   </p>
  
  <p>Moreover i have not used anywhere in my code memcmp fucntion.</p>
  
  <p>I used the linker verbose function and could see below in output file:</p>
  
  <blockquote>
    <p>Found _memcmp</p>
    
    <p>Referenced in MyC++Project.obj</p>
    
    <p>Referenced in libcpmtd.lib(xstrcoll.obj)</p>
    
    <p>Loaded libvcruntimed.lib(__memcmp_.obj)</p>
  </blockquote>
  
  <p>Two questions here</p>
  
  <p>1.even though i have not used memcmp in my code why i am getting that linker error?</p>
  
  <p>2.why is memcmp being loaded as __memcmp_.obj</p>
  
  <p>I have the following settings also in my project:</p>
  
  <p>1.C++-->Code generation-->Runtime Library is set to /MTd</p>
  
  <p>2.Linker-->Ignore All default libraries is set to nothing</p>
  
  <p>I have tried all the project settings but everything in vain.</p>
  
  <p>I have issue only with this memcmp function which i have not used.</p>
  
  <p>I have used mamcpy and memset and do not have issue with those</p>