在 Windows 8.1 系統上使用 VC++ 6.0 編譯程序時,出現 error spawning cl.exe 錯誤,導致無法編譯。
VC++ 6.0 發布於 1998 年,與 Windows 8.1 存在嚴重兼容性問題。主要表現為:
cl.exe 無法正確啟動或定位。在 VirtualBox 或 VMware 中安裝 Windows XP,裡面運行 VC++ 6.0,兼容性最好,開發體驗最完整。
msdev.exe 兼容模式為 "Windows XP (Service Pack 3)",並勾選 "以管理員身份運行"。強烈建議遷移至 Visual Studio 2019/2022 Community 版,享受現代 C++ 標準支持、更好的調試器、IntelliSense 及對最新 Windows SDK 的完美兼容。