f35 kdevelop 5.6.2 :: within project sting_view not found in std?
Milian Wolff
milian.wolff at kdab.com
Fri Feb 11 10:33:46 GMT 2022
On Freitag, 11. Februar 2022 10:26:37 CET Adrian Sevcenco wrote:
> Hi! I have a really weird problem with kdevelop:
> in the problems tab i get:
> No type named 'string_view' in namespace 'std'
>
> i made sure that in the project configuration -> Laguage support -> C/C++
> parser i have c++ profile to c++17 and Compiler for path = GCC
>
> Any idea why string_view could not be found in std?
I don't know, but can you verify with `KDEV_CLANG_DISPLAY_ARGS=1 kdevelop`
that it really passes the correct c++ profile to clang?
Generally that should be taken from cmake, are you ensuring that it uses C++17
there? Or do you happen to rely on the default c++ standard which may be
different from GCC (used by cmake by default when compiling) and Clang (as
used by kdevelop).
Cheers
--
Milian Wolff | milian.wolff at kdab.com | Senior Software Engineer
KDAB (Deutschland) GmbH, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt, C++ and OpenGL Experts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5272 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20220211/16ee7c54/attachment.bin>
More information about the KDevelop
mailing list