在 VS2010 中使用 Intel C++ Compiler XE 14 的一些问题

来源:互联网 发布:业务数据分析流程图 编辑:程序博客网 时间:2024/05/21 00:55

1、编译64位debug版 jpeg 库时,出现一个警告“1>icl : warning #10210: problem with Microsoft compilation of 'jcapimin.c'” 和一个错误

“1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 14.0\Microsoft.Cpp.x64.Intel C++ Compiler XE 14.0.targets(306,5): error MSB6006: "icl.exe" exited with code -1.”。

经过若干次尝试,解决方法是:

把属性页中的 Enable Browse Information 的 Yes(/FR) 改为 No。


2、在32位操作系统上希望将代码编译成64位,当代码中存在#import “xxx.dll” no_namespace时,会出现找不到接口的编译错误。

解决方法是:

把 Tools->Options->Intel Composer XE->C++->Compilers 中 “/Qvc10 /Qlocation,link,"$(VCInstallDir)\bin\amd64"” 改为 “/Qvc10 /Qlocation,link,"$(VCInstallDir)\bin\x86_amd64"”。前者是64位操作系统编64位程序用的,后者是32位操作系统编64位程序用的,要是32位操作系统编32位程序,就改为/Qvc10 /Qlocation,link,"$(VCInstallDir)\bin"” 

参考 

“https://software.intel.com/en-us/articles/compilation-error-with-import-xxxdll-when-building-the-x64-configuration-inside-visual#comment-1791998”

“http://stackoverflow.com/questions/2548138/how-to-compile-x64-code-with-visual-studio-in-command-line”


3、使用 VC编译器编译的程序 和 Intel编译器编译的程序执行结果相差较大。

可能原因:

VC 中的 Floating Point Model 缺省为 “Precise (/fp:precise)”,Intel 缺省为 “Fast (/fp:fast)” 。

0 0