Bug 377045 - On Windows, KDevelop fails to recognize the c++ standard library
Summary: On Windows, KDevelop fails to recognize the c++ standard library
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (show other bugs)
Version: 5.0.3
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-01 07:02 UTC by iczero4
Modified: 2017-11-17 13:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.2.1


Attachments
a screenshot of the Problems tool view (24.02 KB, image/png)
2017-03-01 07:02 UTC, iczero4
Details

Note You need to log in before you can comment on or make changes to this bug.
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