[Intel Compiler 18.0 Toolset在msbuild中引发异常

问题描述 投票:0回答:1

我重新安装了机器并安装了Visual Studio 2017Visual Studio 2019 (Preview)Intel Compiler 18。由于未知原因,我的项目无法正常工作,而且我无法弄清楚是什么原因造成的。有没有人遇到以下错误消息?

我的项目使用Intel C++ Compiler 18.0工具集。

Visual Studio 2017错误消息

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\xmemory0(178):
error : identifier "__STDCPP_DEFAULT_NEW_ALIGNMENT__" is undefined
1>      enable_if_t<(!_HAS_ALIGNED_NEW || _Align <=
__STDCPP_DEFAULT_NEW_ALIGNMENT__), int> = 0> inline

Visual Studio 2019(Preview)错误消息

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Platforms\x64\PlatformToolsets\Intel C++ Compiler 18.0\Toolset.targets(150,5):
error MSB4062: The "ICMessage" task could not be loaded from the assembly C:\Program Files %28x86%29\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Intel.Build.ICLTasks.v150.dll.
Could not load file or assembly 'file:///C:\Program Files %28x86%29\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Intel.Build.ICLTasks.v150.dll' or one of its dependencies.
The system cannot find the file specified.
Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

重新安装之前,我的项目运行正常。有谁知道这是怎么回事?

visual-studio msbuild visual-studio-2019 icc
1个回答
0
投票

系统找不到指定的文件。

1。检查路径Intel.Build.ICLTasks.v150.dll中是否存在C:\Program Files (x86)\Microsoft Visual Studio\2017\xxx\Common7\IDE\VC\VCTargets。根据错误消息,它不存在,所以我猜没有成功安装Intel Compiler 18。

注意,recommended order要执行的安装是:成功安装VS,然后再安装Intel Compiler。如果在安装VS2017之前安装Intel Compiler,则会引起问题。

例如:安装VS后,当我安装Intel Parallel Studio时,它将把多个文件和程序集下载到文件夹C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets中,以供将来开发。因此,如果我在安装VS之前先安装了英特尔编译器,那我就找不到Intel.Build.ICLTasks.v150.dll

2。对于VS2017中的原始错误消息,建议您将Intel编译器更新为2019 Update3及更高版本,请参阅versions。当您重新安装VS时,安装程​​序将下载最新的15.9.16版本(比您的旧版本更新),因此,您还需要升级Intel编译器版本以解决某些冲突。

© www.soinside.com 2019 - 2024. All rights reserved.