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

missing <numbers> header

User01
New Contributor II
528 Views

When compiling the following code on Intel DevCloud with icpx, it looks like the C++ 20 <numbers> header is missing even with std is specified to use 20.

#include <iostream>
#include <numbers>

using namespace std;

int main() {
  cout << "Hello World." << endl;

  return 0;
}
icpx -std=gnu++20 test.cpp -o test
test.cpp:2:10: fatal error: 'numbers' file not found
#include <numbers>
^~~~~~~~~
1 error generated.
$ icpx --version
Intel(R) oneAPI DPC++/C++ Compiler 2022.1.0 (2022.1.0.20220316)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /glob/development-tools/versions/oneapi/2022.2/oneapi/compiler/2022.1.0/linux/bin-llvm

 

0 Kudos
3 Replies
ShanmukhS_Intel
Moderator
491 Views

Hi,


Thank you for posting on Intel communities.


When compiling the following code on Intel DevCloud with icpx, it looks like the C++ 20 <numbers> header is missing even with std is specified to use 20.

>> We regret to inform you that the Intel® oneAPI C++ Compiler doesn't conform to the C++20 standard as of now. The Intel® oneAPI C++ Compiler conforms to the following standards,

C++17 standard (ISO/IEC 14882:2017)

C++14 standard (ISO/IEC 14882:2014)

C++11 standard (ISO/IEC 14882:2011)

C++98 standard (ISO/IEC 14882:1998)


For more details regarding the conformance wrt. C and SYCL standards, please refer to the below link.


https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/compatibility-and-portability/conformance-to-the-c-c-dpc-standards.html


Best Regards,

Shanmukh.SS


0 Kudos
ShanmukhS_Intel
Moderator
449 Views

Hi,


A gentle reminder:

As we haven't heard back from you for a while, could you please let us know if there is any update regarding the issue?


Regards,

Shanmukh.SS


0 Kudos
ShanmukhS_Intel
Moderator
425 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.


Best Regards,

Shanmukh.SS


0 Kudos
Reply