Bug 377045

Summary: On Windows, KDevelop fails to recognize the c++ standard library
Product: [Applications] kdevelop Reporter: iczero4
Component: Language Support: CPP (Clang-based)Assignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: geetam.chawla
Priority: NOR    
Version: 5.0.3   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 5.2.1
Attachments: a screenshot of the Problems tool view

Description iczero4 2017-03-01 07:02:06 UTC
Created attachment 104287 [details]
a screenshot of the Problems tool view

KDevelop fails to recognize the c++ standard library on Windows. The result is that it complains about not being able to find the "iostream" header file and that "std" is an undeclared identifier.
Comment 1 iczero4 2017-03-01 07:05:07 UTC
I am using the x86_64-6.3.0-posix-seh-rt_v5-rev1 version of mingw-w64 on Windows 10.
Comment 2 Kevin Funk 2017-03-01 07:44:28 UTC
That's true, you need to point KDevelop to your STL install directory via Project Configuration -> Language Support -> Includes/Imports.

There's no easier way to do it at the moment.
Comment 3 iczero4 2017-03-02 01:13:35 UTC
OK. Are there any plans to detect the compiler's STL include directory in the future?
Comment 4 Kevin Funk 2017-03-02 08:50:59 UTC
Sure, there are, unfortunately we're lacking manpower in that regard. If someone wants to chime in and help us out we're happy to receive (code) contributions!
Comment 5 geetam chawla 2017-11-17 13:32:02 UTC
@Kevin Funk
I forgot to include BUG keyword in the commit message, can you close this, now that it is fixed?
Comment 6 Kevin Funk 2017-11-17 13:33:30 UTC
Fixed by https://phabricator.kde.org/D8805 -- correct?
Comment 7 geetam chawla 2017-11-17 13:34:28 UTC
(In reply to Kevin Funk from comment #6)
> Fixed by https://phabricator.kde.org/D8805 -- correct?

and this: https://phabricator.kde.org/D8831