Error: "CL.exe" exited with code 1 while compile C++ code in Visual Studio 2019

  • Thread starter Thread starter Saurabh162
  • Start date Start date
S

Saurabh162

Guest
Dear Developers,



Sometime (randomly) when I compile my C++ code using Visual Studio 2019. I get following error.



"CL.exe" exited with code 1.



In following file:



C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.



After searching on google I found following possible reasons for this problem. I have tried all but none has helped me.



Possible solutions which did not helped me:



1. Ensure that no two instances of Visual Studio running at a same time, and while one of them was in the middle of a debugging session, I tried to compile the other instance.



2. Running visual studio as administrator.



Please inform me if you need any other information from me.



Thanks and Regards



Saurabh

Continue reading...
 
Back
Top