I have a test file which just consists of
#include <string_view>. This leads to the error
cannot open source file "string_view". About this, the reference guide (HPC Compiler Reference Manual Version 23.3 for ARM, OpenPower, x86) states that NVC++ does not include a C++ standard library and mentions
stdt::string_view explicitly among the libraries which need to be provided externally.
I’m using the HPC SDK 23.3. Within its installation directory, I found string_view include files, but providing them with
-I just gives the multitude of error messages in the file in
test_stringview.out (21.8 KB). There are various syntax errors which are due to unexpanded macros.
Similar things happen when I use string_view includes from GCC installations. Also, the
-std=gnu++17 option does not change the result.
What is the usual way to include
std::string_view and the other libraries? I guess that various other include paths need to be set.