安装 Intel C++ Compiler 12 以后,VC6 不能编译的问题。

来源:互联网 发布:linux 运维之道第2版 编辑:程序博客网 时间:2024/06/01 08:26

在 安装 Intel C++ Compiler 12 以后,由于安装时不提供对 VC6 开发环境的集成,所以编译时会产生 “Error spawning icl.exe” 的错误,在 Tools->Options->Directories->Executable files 里添加 “C:\Program Files\Intel\Composer XE 2011 SP1\bin\ia32” 以后,又会产生 “LINK : fatal error LNK1104: cannot open file "锘?nologo.obj"” 的错误,索性在 VC6 中不用 Intel 编译器了。

修改注册表

1、把 “HKEY_CURRENT_USER\Software\Microsoft\Devstudio\6.0\Build System\Components\Platforms\Win32 (x86)\Tools\32-bit C/C++ Compiler for 80x86\Executable Path” 的值从 icl.exe 改为 cl.exe。 

2、把 “HKEY_CURRENT_USER\Software\Microsoft\Devstudio\6.0\Build System\Components\Platforms\Win32 (x86)\Tools\COFF Linker for 80x86\Executable Path” 的值从 xilink.exe 改为 link.exe。

这样 VC6 就恢复使用自身的编译器了。

(VC6自身编译器的路径为 “C:\Program Files\Microsoft Visual Studio\VC98\Bin”。)

原创粉丝点击