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

error: no instance of overloaded function matches the argument list

Przemysław_O_
Beginner
2,222 Views

Hello,

I use

Intel® C++ Compiler Classic – toolkit version: 2022.3.1, extension version 19.2.10.17, Package ID: w_oneAPI_2022.2.1.14974,

with

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

and become errors.

Repro:

Visual Studio -> File -> New -> Project -> Console App:

#include <iostream>

int main()
{
    std::cout << "Hello World!\n";
}

In the solution context menu Intel Compiler -> Use Intel Compiler Classic:

1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\xmemory(69): error : no instance of overloaded function "std::max" matches the argument list
1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\xmemory(835): error : no instance of function template "std::_Allocate" matches the argument list
1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\xmemory(668): error : no instance of function template "std::_Deallocate" matches the argument list
1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\xmemory(835): error : no instance of function template "std::_Allocate" matches the argument list
1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\xmemory(830): error : no instance of function template "std::_Deallocate" matches the argument list
1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\xmemory(835): error : no instance of function template "std::_Allocate" matches the argument list
1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\xmemory(835): error : no instance of function template "std::_Allocate" matches the argument list
1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\xmemory(835): error : no instance of function template "std::_Allocate" matches the argument list

 

0 Kudos
3 Replies
SantoshY_Intel
Moderator
2,194 Views

Hi,

 

Thanks for posting in the Intel forums.

 

We can see that you are using Microsoft Visual Studio Version 17.4.2, which is not compatible with Intel compilers. We recommend you to use the Intel compilers with any one of the compatible microsoft visual studio versions.

 

For Intel oneAPI 2022.3 release, given below are the compatible & validated microsoft visual studio versions:

  • VS2022 17.3
  • VS2019 16.11.15
  • VS2017 15.9.48
  • VS2022 17.2.6

 

For more information, please refer to the Intel® Compilers Compatibility with Microsoft Visual Studio* and Xcode*.

 

Thanks & Regards,

Santosh

 

 

0 Kudos
SantoshY_Intel
Moderator
2,093 Views

Hi,


We haven't heard back from you. Could you please provide us with an update on your issue?


Thanks & Regards,

Santosh


0 Kudos
SantoshY_Intel
Moderator
2,014 Views

Hi,


We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks & Regards,

Santosh


0 Kudos
Reply