title: Error MSB6006 "CL.exe" exited with code 2 in compile in visual studio c++
body: <p>I work on a c++ console project. this project has in msmpisdk platform. When I compiled in Visual Studio 2019 the error below occurred:</p>
  
  <blockquote>
    <p>"Severity Code    Description Project File    Line    Suppression State...Error   MSB6006 "CL.exe" exited with code 2....C:\Program Files (x86)\Microsoft VisualStudio\2019\Enterprise\MSBuild\Microsoft\VC\v160-\Microsoft.CppCommon.targets 429."</p>
  </blockquote>
  
  <p>I checked my code, it seems OK, also check ref lib of project, it seems OK.</p>
  
  <p>I searched the web.</p>
  
  <ol>
  <li>All functions return a value.</li>
  <li>All variables set a value before using it.</li>
  <li>I restarted Visual Studio and my computer.</li>
  <li>I created new project and added the code, but the same error occurred.</li>
  </ol>
  
  <p>but the same error occurred and my code doesn't compile.</p>