Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7679 Discussions

Intel Compiler uses wrong header files

Sebastian1
Beginner
169 Views

Hi,

my Visual Studio is causing problems and I can't figure out what's going on. I am using Visual Studio 2017 and installed ICC18 and ICC19 including the IDE integration.

My project gets compiled with Intel Compiler 18.0.5.274 and Platform Toolset v141 but any translation unit fails to compile. To me it looks like ICC somehow picks up the MSVC header files. Does anyone know what could cause that?

 

Thanks!

 

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\type_traits(1562): error : expected a ">"
1>  	_INLINE_VAR constexpr bool _Is_specialization_v<_Template<_Types...>, _Template> = true;
1>  	                                                                ^
1>          detected during:
1>            instantiation of "const bool std::_Is_specialization_v [with _Type=std::char_traits<char>, _Template=std::char_traits]" at line 2108 of "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\xstring"
1>            instantiation of class "std::basic_string<_Elem, _Traits, _Alloc> [with _Elem=char, _Traits=std::char_traits<char>, _Alloc=std::allocator<char>]" at line 24 of "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\stdexcept"
1>
1>compilation aborted for ..\generated\hxx\register.cpp (code 2)

 

0 Kudos
1 Reply
Viet_H_Intel
Moderator
169 Views

Can you provide us a test case to investigate?

Reply