S
speed258
Guest
Hello I recently updated my VS from 2017 to 2019 and from now on I cant compile any c++ projects created by VS2019 it throws error: Error MSB6006 "CL.exe" exited with code 2.
Code to reproduce error:
int main()
{
return 0;
}
First thing I done is repair VS because I though there is corruped file, but that didnt helped so I started messing with settings,
Changing Properties > C/C++ > Advanced > Compile As > to C code /TC app compiles and work, setting default or /Tp it throws again Error MSB6006 "CL.exe" exited with code 2., changing platform from x64 to x84 works too, but currently as I write it does not work anymore, already deleted bin and obj folders but it didnt help, also noticed that VS19 does not create any precompiled headers, if I copy paste settings and pre-header files it throws error that it unable to find myproject.pch files, I believe because of not set pre-headers its related that compiler throws error Error MSB6006 "CL.exe" exited with code 2.
Continue reading...
Code to reproduce error:
int main()
{
return 0;
}
First thing I done is repair VS because I though there is corruped file, but that didnt helped so I started messing with settings,
Changing Properties > C/C++ > Advanced > Compile As > to C code /TC app compiles and work, setting default or /Tp it throws again Error MSB6006 "CL.exe" exited with code 2., changing platform from x64 to x84 works too, but currently as I write it does not work anymore, already deleted bin and obj folders but it didnt help, also noticed that VS19 does not create any precompiled headers, if I copy paste settings and pre-header files it throws error that it unable to find myproject.pch files, I believe because of not set pre-headers its related that compiler throws error Error MSB6006 "CL.exe" exited with code 2.
Continue reading...