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

_VARIANT_BOOL errors when including windows.h

Clift__Neill
Beginner
2,034 Views

How do I get rid of these errors:

1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(487): error : expected a declaration
1>                  _VARIANT_BOOL bool;
1>                  ^
1>
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\oaidl.h(502): error : expected a declaration
1>                  _VARIANT_BOOL *pbool;
1>                  ^

I see an old mention of this that it's related to the version the compiler is claiming to be via _MSC_VER but I haven't been able to sort it this way so far.

0 Kudos
5 Replies
Viet_H_Intel
Moderator
2,034 Views

What Intel compiler version are you using? and what Microsoft Visual Studio version?

0 Kudos
Clift__Neill
Beginner
2,034 Views

I am using Visual studio 2019. I am using the c compiler in Parallel Studio XE 2018 update 4.

0 Kudos
Clift__Neill
Beginner
2,034 Views

Clift, Neill wrote:

I am using Visual studio 2019. I am using the c compiler in Parallel Studio XE 2019 update 4.

0 Kudos
Clift__Neill
Beginner
2,034 Views

Thats funny In help about in Visual studio it says parallel XE 2019 update 4 but in the intel s/w manager history it has 2018 update 4.

0 Kudos
Viet_H_Intel
Moderator
2,034 Views

VS2019 hasn't been yet supported by Intel compiler. 

You can see system requirements in the RN https://software.intel.com/en-us/articles/intel-c-compiler-190-for-windows-release-notes-for-intel-parallel-studio-xe-2019#sysreq 

0 Kudos
Reply