Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
7749 Discussions

error : SEH '__try' is not supported on this target by including <atlcomtime.h>

Przemysław_O_
Beginner
178 Views

Hello,

I use

Intel® oneAPI DPC++ Compiler – toolkit version: 2022.3.1, extension version 22.0.0.17, Package ID: w_oneAPI_2022.2.1.14974

with

Microsoft Visual Studio Enterprise 2022 (64-bit) - Current Version 17.4.1

and become an error in project which includes <atlcomtime.h>

Repro is creating new DPC++ Console Application Project in Visual Studio and put:

#include <atlcomtime.h>

Output:

1>Target ClCompile:
1>  In file included from DPCPPConsoleATL.cpp:30:
1>  In file included from C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\atlmfc\include\atlcomtime.h:24:
1>  In file included from C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\atlmfc\include\atltime.h:30:
1>  In file included from C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\atlmfc\include\atlstr.h:19:
1>  In file included from C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\atlmfc\include\atlbase.h:66:
1>  In file included from C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\atlmfc\include\atlcore.h:34:
1>  In file included from C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\atlmfc\include\atlchecked.h:17:
1>  In file included from C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\atlmfc\include\atlexcept.h:17:
1>  In file included from C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\atlmfc\include\atltrace.h:17:
1>  In file included from C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\atlmfc\include\atlconv.h:27:
1>  C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\atlmfc\include\atlalloc.h(621,5): : error : SEH '__try' is not supported on this target
1>      __try
1>      ^
1>  1 error generated.

I tried to use Enable C++ Exceptions Yes with SEH Exceptions (/EHa) with the same result.

Best regards

Przemek

 

 

 

 

 

0 Kudos
2 Replies
VarshaS_Intel
Moderator
142 Views

Hi,


Thanks for posting in Intel Communities.


We are able to reproduce your issue. We are working on your issue and will get back to you soon.


Thanks & Regards,

Varsha


VarshaS_Intel
Moderator
112 Views

Hi,


Thanks for reporting this issue. 


We have reported this issue to the concerned development team. They are looking into your issue.


Thanks & Regards,

Varsha


Reply