NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: string_view and clang

On 08.06.2018 17:04, Patrick Welche wrote:
> According to
> string_view is supported by gcc 7 and clang 4.0. As in NetBSD-current
> base we have gcc 6.4.0 and clang 5.0.1, I thought I would try it out:
> $ clang -std=c++17 -o foo foo.cpp
> foo.cpp:3:10: fatal error: 'string_view' file not found
> #include <string_view>
>          ^~~~~~~~~~~~~
> 1 error generated.
> Is the page over optimistic, or do I need more flags on my compile line?
> (Guessing that /usr/include has the gcc include files...)

We ship with an old version of libc++ in base.

If you are using a LLVM style Please try to include it with

I'm working right now on getting HEAD libc++ to work on NetBSD.

> Cheers,
> Patrick

Attachment: signature.asc
Description: OpenPGP digital signature

Home | Main Index | Thread Index | Old Index