使用VC时出现error spawning cl.exe解决方法

Posted on 2005-04-07 09:59  Jerry Ren  阅读(234)  评论(0编辑  收藏  举报

If you get this error, your roaming profile records an incorrect directory for the Microsoft Visual C++ installation on the PC. Consequently, Microsoft Visual C++ cannot locate the compiler executable. The problem occurs because Microsoft Visual C++ is not yet installed in a uniform directory across PCs. This inconsistency is being resolved actively, but slowly. In the mean time, here's a fix:

Exit Microsoft Visual C++.
Select Start -> Run... and enter regedit. This starts the registry editor.
Carefully navigate down this path:
   H_KEY_CURRENT_USER
      Software
         Microsoft
            DevStudio
               6.0
                  BuildSystem
                     Componenets
                        Platforms
                           Win32 (x86)
                              Directories

Carefully right-click on the Directories key and choose Delete.
Exit from the registry editor.

这个问题通常在把VC先装在一个文件夹后又改装到另一个新的文件夹的地方后出现

Copyright © 2025 Jerry Ren
Powered by .NET 9.0 on Kubernetes