I’m using Visual Studio 2012 Professional updated to SP5 under Windows 7 SP1 with latest updates.
I needed Visual Studio 2015 for some time, installed then uninstalled it with standard uninstaller.
But today I needed to build Webkit for Windows, and its build script ran
vswhere.exe and detected some parts from Visual Studio 2015 as “working” installation, so I needed “full” uninstall for VS2015, which I found here: https://github.com/Microsoft/VisualStudioUninstaller.
I ran it once, and VS2015 disappeared from
But now I have a problem:
Every app I trying to compile with VS2012 gives “cl.exe terminated abnormally with code -1073741701”.
I tried :
- Reinstalled VS2012 with or without SP5 multiple times, including clean reinstall (uninstall main, uninstall dependencies, install again), still same error.
- Tried to repair VS2012.
- I tried to run
C:Program Files (x86)Microsoft Visual Studio 11.0VCbincl.exe, it says “mspdb110.dll not found”.
- I copied
C:Program Files (x86)Microsoft Visual Studio 11.0Common7IDE
and added to the PATH
C:Program Files (x86)Microsoft Visual Studio 11.0Common7IDE. Still same error.
If I switch project platform to x64, it compiles and runs without a problem. Only x86 compiler cannot run and gives the error above. Sometimes there is a popup in VS2012 that “cl.exe cannot run code 0xc000007b”.
If I run
C:Program Files (x86)Microsoft Visual Studio 11.0VCvcvarsall.bat x86,
I can run
cl.exe and even compile working 32-bit apps, but inside Visual Studio 2012 IDE it fails to run
cl.exe every time, no matter what I do.
Please help me to fix it.
I think maybe it’s something to do with .NET Framework (I have 4.5, 4.6 and 4.7 installed) in the
MSBuild folder. Maybe I need to reinstall .NET Framework SDK somehow? If possible, I want to avoid reinstalling OS.
Started a bounty. Still have a same problem.
I tried to insert run
cl.exe without parameters in “Run before build…” script, and it runs from there! But afterward the IDE runs
cl.exe from .NET environment and gives:
C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V110Microsoft.CppCommon.targets(347,5): error MSB6006: “CL.exe” terminated error code -1073741701
If I select x64 platform,
cl.exe runs everywhere perfectly fine.
If I run
vcvarsall.bat x86, I can run
cl.exe and compile.
The only thing I need to fix is some path in environment which used for Win32 x86 build from Visual Studio 2012 IDE. I can reinstall .NET Framework or Visual Studio (tried it but anyway) or edit some MSBuild configurations. Please tell me where possible to fix. The only thing I cannot do is reinstall OS, as I have a lot of software and reinstall will take a LOT of time.
Tried to uninstall everything, including .NET Framework 4.5, 4.6, 4.7 and Microsoft SQL Server 2008, 2012. Then installed Visual Studio 2012 Professional RTM. After install on first run I opened test app and got same error as above…
x64 version works. Same after installing SP5.