Can't find standard C++ headers
The IDE can't seem to find the standard C++headers. I have “#include <string>” in my c++ source. “string” is underlined in red. Mouse-over reveals "'string' file not found”. How can I tell Fleet where to find the standard headers?
I am using Fleet on Linux Mint (Ubuntu derivative) with g++ 11.4.0 installed.
% g++ --version
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Please sign in to leave a comment.
Could you clarify, have you set up the compilation database for the project?
Is it possible to check the project? For uploading, you can use https://uploads.jetbrains.com or any file sharing service.
Thank you.
Yes, I have a compilation database. It is a CMake project. I added the command to create the compilation database and the IDE found it.
I tried loading a different project. Both of these projects work fine in CLion. Both have problems finding standard headers in Fleet.
Upload id is Upload id: 2024_05_03_5eUJMZNo8szZWzpB48YpxN (file: fleet.zip). This is a simple project that has the problem.
Sorry for a delayed reply. And thank you very much for the provided information! It was useful.
C++ language support is implemented but there are still some missing functionality left, like navigation to included files. Please vote for this request in our tracker to increase its priority and be notified about any updates: https://youtrack.jetbrains.com/issue/FL-18696/C-C-Switch-between-header-and-source
I have provided your report to the team.