f35 kdevelop 5.6.2 :: within project sting_view not found in std?
Adrian Sevcenco
adrian.sev at gmail.com
Fri Feb 11 12:15:14 GMT 2022
On 11.02.2022 14:09, Adrian Sevcenco wrote:
> On 11.02.2022 12:33, Milian Wolff wrote:
>> 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?
actually removing the project from the session i get a clean line for parsing:
Invocation: clang -ferror-limit=100 -fspell-checking -Wunused-parameter -Wunreachable-code -Wall -std=c++11 -nostdinc
-nostdinc++ -xc++ -isystem/home/physics-tools/ROOT/v6-26-00-patches/include -isystem/usr/include/c++/11
-isystem/usr/include/c++/11/x86_64-redhat-linux -isystem/usr/include/c++/11/backward -isystem/usr/local/include
-isystem/usr/include -isystem /usr/lib64/llvm12/lib/clang/12.0.1/include -imacros /home/adrian/tmp/kdevelop.AjWwlc
/home.hdd/adrian/work/AO2Dproto/ao2d_process.C
and that std=c++11 is just wrong...
any idea how can i instruct the clang parser to used c++17?
Thanks a lot!
Adrian
More information about the KDevelop
mailing list