cppinsights icon indicating copy to clipboard operation
cppinsights copied to clipboard

[C++20] format header file is not found

Open matrixjoeq opened this issue 2 years ago • 1 comments

When building source code with C++20 standard, the header file introduced in C++20 standard is not found with following error: /home/insights/insights.cpp:139:12: fatal error: 'format' file not found #include

matrixjoeq avatar Jun 29 '22 06:06 matrixjoeq

Hello @matrixjoeq,

thanks for reporting this. At the moment the standard libraries from both GCC and Clang don't have this header in the version C++ Insights uses.

Andreas

andreasfertig avatar Jun 29 '22 06:06 andreasfertig

Hello @matrixjoeq,

I fixed this issue today by using Clang 16 (#569). However, since C++ Insights still uses GCC 12 std::format only works with libc++: https://cppinsights.io/s/6ff36d3b

Andreas

andreasfertig avatar Sep 25 '23 15:09 andreasfertig