我知道英特尔编译器还不支持Visual Studio 2017,但我试图用它们编译简单的C ++文件并遇到以下问题:
使用Intel parallel Studio 2016和VS2017时,在Developer命令提示符下执行命令时出现以下错误:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional>set PATH=C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016\windows\bin\intel64;%PATH%
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional>icl /c c:\Users\agudla\Desktop\test.cpp
Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 16.0 Build 20160811
Copyright (C) 1985-2016 Intel Corporation. All rights reserved.
test.cpp
icl: NOTE: The evaluation period for this product ends on 20-apr-2017 UTC.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\xtr1common(100): error: "is_same_v" is not a function or static data member
constexpr bool is_same_v = is_same<_Ty, _Uty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\xtr1common(100): error: "constexpr" is not valid here
constexpr bool is_same_v = is_same<_Ty, _Uty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\xtr1common(243): error: "is_integral_v" is not a function or static data member
constexpr bool is_integral_v = is_integral<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\xtr1common(243): error: "constexpr" is not valid here
constexpr bool is_integral_v = is_integral<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\xtr1common(278): error: "is_floating_point_v" is not a function or static data member
constexpr bool is_floating_point_v = is_floating_point<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\xtr1common(278): error: "constexpr" is not valid here
constexpr bool is_floating_point_v = is_floating_point<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\xtr1common(289): error: "is_arithmetic_v" is not a function or static data member
constexpr bool is_arithmetic_v = is_arithmetic<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\xtr1common(289): error: "constexpr" is not valid here
constexpr bool is_arithmetic_v = is_arithmetic<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(76): error: "is_function_v" is not a function or static data member
constexpr bool is_function_v = is_function<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(76): error: "constexpr" is not valid here
constexpr bool is_function_v = is_function<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(1284): error: __make_integer_seq is not a template
using make_integer_sequence = __make_integer_seq<integer_sequence, _Ty, _Size>;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2117): error: "is_void_v" is not a function or static data member
constexpr bool is_void_v = is_void<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2117): error: "constexpr" is not valid here
constexpr bool is_void_v = is_void<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2119): error: "is_null_pointer_v" is not a function or static data member
constexpr bool is_null_pointer_v = is_null_pointer<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2119): error: "constexpr" is not valid here
constexpr bool is_null_pointer_v = is_null_pointer<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2121): error: "is_array_v" is not a function or static data member
constexpr bool is_array_v = is_array<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2121): error: "constexpr" is not valid here
constexpr bool is_array_v = is_array<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2123): error: "is_pointer_v" is not a function or static data member
constexpr bool is_pointer_v = is_pointer<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2123): error: "constexpr" is not valid here
constexpr bool is_pointer_v = is_pointer<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2125): error: "is_lvalue_reference_v" is not a function or static data member
constexpr bool is_lvalue_reference_v = is_lvalue_reference<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2125): error: "constexpr" is not valid here
constexpr bool is_lvalue_reference_v = is_lvalue_reference<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2127): error: "is_rvalue_reference_v" is not a function or static data member
constexpr bool is_rvalue_reference_v = is_rvalue_reference<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2127): error: "constexpr" is not valid here
constexpr bool is_rvalue_reference_v = is_rvalue_reference<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2129): error: "is_member_object_pointer_v" is not a function or static data member
constexpr bool is_member_object_pointer_v = is_member_object_pointer<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2129): error: "constexpr" is not valid here
constexpr bool is_member_object_pointer_v = is_member_object_pointer<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2147): error: "is_compound_v" is not a function or static data member
constexpr bool is_compound_v = is_compound<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2147): error: "constexpr" is not valid here
constexpr bool is_compound_v = is_compound<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2149): error: "is_member_pointer_v" is not a function or static data member
constexpr bool is_member_pointer_v = is_member_pointer<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2149): error: "constexpr" is not valid here
constexpr bool is_member_pointer_v = is_member_pointer<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2151): error: "is_const_v" is not a function or static data member
constexpr bool is_const_v = is_const<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2151): error: "constexpr" is not valid here
constexpr bool is_const_v = is_const<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2153): error: "is_volatile_v" is not a function or static data member
constexpr bool is_volatile_v = is_volatile<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2153): error: "constexpr" is not valid here
constexpr bool is_volatile_v = is_volatile<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2155): error: "is_trivial_v" is not a function or static data member
constexpr bool is_trivial_v = is_trivial<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2155): error: "constexpr" is not valid here
constexpr bool is_trivial_v = is_trivial<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2157): error: "is_trivially_copyable_v" is not a function or static data member
constexpr bool is_trivially_copyable_v = is_trivially_copyable<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2157): error: "constexpr" is not valid here
constexpr bool is_trivially_copyable_v = is_trivially_copyable<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2159): error: "is_standard_layout_v" is not a function or static data member
constexpr bool is_standard_layout_v = is_standard_layout<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2159): error: "constexpr" is not valid here
constexpr bool is_standard_layout_v = is_standard_layout<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2161): error: "is_pod_v" is not a function or static data member
constexpr bool is_pod_v = is_pod<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2161): error: "constexpr" is not valid here
constexpr bool is_pod_v = is_pod<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2163): error: "is_literal_type_v" is not a function or static data member
constexpr bool is_literal_type_v = is_literal_type<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2163): error: "constexpr" is not valid here
constexpr bool is_literal_type_v = is_literal_type<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2165): error: "is_empty_v" is not a function or static data member
constexpr bool is_empty_v = is_empty<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2165): error: "constexpr" is not valid here
constexpr bool is_empty_v = is_empty<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2167): error: "is_polymorphic_v" is not a function or static data member
constexpr bool is_polymorphic_v = is_polymorphic<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2167): error: "constexpr" is not valid here
constexpr bool is_polymorphic_v = is_polymorphic<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2169): error: "is_abstract_v" is not a function or static data member
constexpr bool is_abstract_v = is_abstract<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2169): error: "constexpr" is not valid here
constexpr bool is_abstract_v = is_abstract<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2171): error: "is_final_v" is not a function or static data member
constexpr bool is_final_v = is_final<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2171): error: "constexpr" is not valid here
constexpr bool is_final_v = is_final<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2173): error: "is_signed_v" is not a function or static data member
constexpr bool is_signed_v = is_signed<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2173): error: "constexpr" is not valid here
constexpr bool is_signed_v = is_signed<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2175): error: "is_unsigned_v" is not a function or static data member
constexpr bool is_unsigned_v = is_unsigned<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2175): error: "constexpr" is not valid here
constexpr bool is_unsigned_v = is_unsigned<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2178): error: "is_constructible_v" is not a function or static data member
constexpr bool is_constructible_v = is_constructible<_Ty, _Args...>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2178): error: "constexpr" is not valid here
constexpr bool is_constructible_v = is_constructible<_Ty, _Args...>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2180): error: "is_default_constructible_v" is not a function or static data member
constexpr bool is_default_constructible_v = is_default_constructible<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2180): error: "constexpr" is not valid here
constexpr bool is_default_constructible_v = is_default_constructible<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2182): error: "is_copy_constructible_v" is not a function or static data member
constexpr bool is_copy_constructible_v = is_copy_constructible<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2182): error: "constexpr" is not valid here
constexpr bool is_copy_constructible_v = is_copy_constructible<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2184): error: "is_move_constructible_v" is not a function or static data member
constexpr bool is_move_constructible_v = is_move_constructible<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2184): error: "constexpr" is not valid here
constexpr bool is_move_constructible_v = is_move_constructible<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2187): error: "is_assignable_v" is not a function or static data member
constexpr bool is_assignable_v = is_assignable<_Ty, _Uty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2187): error: "constexpr" is not valid here
constexpr bool is_assignable_v = is_assignable<_Ty, _Uty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2189): error: "is_copy_assignable_v" is not a function or static data member
constexpr bool is_copy_assignable_v = is_copy_assignable<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2189): error: "constexpr" is not valid here
constexpr bool is_copy_assignable_v = is_copy_assignable<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2191): error: "is_move_assignable_v" is not a function or static data member
constexpr bool is_move_assignable_v = is_move_assignable<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2191): error: "constexpr" is not valid here
constexpr bool is_move_assignable_v = is_move_assignable<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2200): error: "is_destructible_v" is not a function or static data member
constexpr bool is_destructible_v = is_destructible<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2200): error: "constexpr" is not valid here
constexpr bool is_destructible_v = is_destructible<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2203): error: "is_trivially_constructible_v" is not a function or static data member
constexpr bool is_trivially_constructible_v = is_trivially_constructible<_Ty, _Args...>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2203): error: "constexpr" is not valid here
constexpr bool is_trivially_constructible_v = is_trivially_constructible<_Ty, _Args...>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2205): error: "is_trivially_default_constructible_v" is not a function or static data member
constexpr bool is_trivially_default_constructible_v = is_trivially_default_constructible<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2205): error: "constexpr" is not valid here
constexpr bool is_trivially_default_constructible_v = is_trivially_default_constructible<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2207): error: "is_trivially_copy_constructible_v" is not a function or static data member
constexpr bool is_trivially_copy_constructible_v = is_trivially_copy_constructible<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2207): error: "constexpr" is not valid here
constexpr bool is_trivially_copy_constructible_v = is_trivially_copy_constructible<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2209): error: "is_trivially_move_constructible_v" is not a function or static data member
constexpr bool is_trivially_move_constructible_v = is_trivially_move_constructible<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2209): error: "constexpr" is not valid here
constexpr bool is_trivially_move_constructible_v = is_trivially_move_constructible<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2212): error: "is_trivially_assignable_v" is not a function or static data member
constexpr bool is_trivially_assignable_v = is_trivially_assignable<_Ty, _Uty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2212): error: "constexpr" is not valid here
constexpr bool is_trivially_assignable_v = is_trivially_assignable<_Ty, _Uty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2214): error: "is_trivially_copy_assignable_v" is not a function or static data member
constexpr bool is_trivially_copy_assignable_v = is_trivially_copy_assignable<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2214): error: "constexpr" is not valid here
constexpr bool is_trivially_copy_assignable_v = is_trivially_copy_assignable<_Ty>::value;
^
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.10.25017\include\type_traits(2216): error: "is_trivially_move_assignable_v" is not a function or static data member
constexpr bool is_trivially_move_assignable_v = is_trivially_move_assignable<_Ty>::value;
^
compilation aborted for c:\Users\agudla\Desktop\test.cpp (code 4)
我想知道是否有人对可能导致此错误的内容有任何指示? VS2015命令提示符也一样。