2
1
My Visual Studio 2010 Professional with SP1 installed won't compile anymore. The shown error is:
TRACKER : error TRK0005: Failed to locate: "CL.exe".
The system cannot find the file specified.
Strangely it is also not possible anymore to create new projects - the wizard appears but just restarts when I press create.
As I found out the paths for Visual Studio are now built from settings in the registry. Namely
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio
.
Comparing a colleagues installation with mine revealed no different settings.
So this is how the Property Pages/Configuration Properties/VC++ Directories
look like:
Executable Directories: $(ExecutablePath)
Include Directories: $(IncludePath)
Reference Directories: $(ReferencePath)
Library Directories: $(LibraryPath)
Source Directories: $(SourcePath)
Exclude Directories: $(ExcludePath)
From the Visual Studio 2010 Command Prompt
, cl.exe
is found.
I can only guess that this behavior was caused by a reinstallation of Studio a couple of months ago (to a different folder). As we use an external build-script for our main project there is a good chance that it is broken since then.
Any hints?
Are you sure you installed all the required features?
cl.exe
is the Visual Studio C/C++ compiler & linker. Make sure you added VC++ support, and not just C# and the other languages. – Breakthrough – 2011-10-05T11:17:35.953C++ support is added. I doubt that I would see the C++ templates if it was not installed. – Pascal – 2011-10-06T07:27:34.607