Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

invalid definition of __m128; use #include "xmmintrin.h" instead

Beekman__Jesse
Beginner
795 Views

Hello,

When I try to compile with the Intel compiler I got the error:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xmmintrin.h|56|error #2277: invalid definition of __m128; use #include "xmmintrin.h" instead

If I understand correctly, the error occurs due to 'xmmintrin.h' being part of VC as well as Intel and thus in conflict. I've found the following solution, simply drop the VC include:

https://software.intel.com/en-us/articles/dont-explicitly-search-vc-include-directory-for-include-files-by-using-i-option

But this raises the following catastrophic error: cannot open source file "iostream" (a.k.a. missing fundamental c++ libs?)

What am I missing here?

My compiler search directories:

C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\compiler\include
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl\include
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include

0 Kudos
3 Replies
Viet_H_Intel
Moderator
795 Views

What version of Intel compiler are you using? Make sure it is supported the VS version that you have.

0 Kudos
Beekman__Jesse
Beginner
795 Views

Hi, sorry for the late reply,

It is the Intel 18 compiler with VS 2013. I’ve tried Visual Studio 2015 and 2017, without success.

0 Kudos
Viet_H_Intel
Moderator
795 Views

Can you try IPSXE 2019 update 5?

0 Kudos
Reply