Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » [Ubuntu] System Header Includes Broken in CDT 2020-09 (System header includes (e.g. stdio.h) no longer visible in editor)
[Ubuntu] System Header Includes Broken in CDT 2020-09 [message #1833252] Wed, 07 October 2020 17:43 Go to next message
David Leeds is currently offline David LeedsFriend
Messages: 1
Registered: October 2020
Junior Member
I am running Ubuntu 20.04, and I just upgraded from CDT 2020-06 to 2020-09.

After the upgrade, I noticed that all system header includes, such as stdio.h and pthread.h cannot be found by the editor. This results in all references to standard C library functions being red-lined, and breaks one of the most useful features in CDT: the ability to see reference info for standard library functions.

These headers are located in /usr/include/ on a Linux system.

To make matters worse, I could find no configuration option in Preferences to point the editor to the system include directories.

The only effective fix I could find was to downgrade to 2020-06.

Has anyone else experienced this problem with 2020-09 on Ubuntu, and is this a known issue?
Re: [Ubuntu] System Header Includes Broken in CDT 2020-09 [message #1833318 is a reply to message #1833252] Fri, 09 October 2020 06:08 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
The system include directories are normally discovered by the CDT GCC Built-in Compiler Settings providers.
There are various flavors for the various system running GCC compilers.
The global provider settings are located in
Window --> Preferences --> C/C++ --> Build --> Settings --> Discovery tab
The project settings are in
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc.

This article may help
https://www.eclipse.org/community/eclipse_newsletter/2013/october/article4.php
Previous Topic:CDT CMake Builder reconfiguring on every build
Next Topic:"Preprocessor Include Paths, Macros, etc" missing
Goto Forum:
  


Current Time: Thu Oct 10 17:29:17 GMT 2024

Powered by FUDForum. Page generated in 0.03665 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top