Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Project Explorer always shows default includes
Project Explorer always shows default includes [message #1719884] Tue, 12 January 2016 21:31 Go to next message
Vladimir Grishchenko is currently offline Vladimir GrishchenkoFriend
Messages: 104
Registered: July 2009
Senior Member
I'm trying to set up a project for cross-platform compilation on Linux. Created a simple test makefile project using the "Cross GCC" toolchain, imported a predefined configuration for Cross GCC, defined prefix and path in project's Settings/Tool Settings/Cross Settings. The "CDT Cross GCC Built-in compiler settings" provider is checked and I see the correct built-in paths listed on the Entries tab under "CDT Cross GCC Built-in... " as well as some discovered symbols, the toolchain is installed under /opt/toolchains. The Project Explorer however shows just the default include paths under /usr, and this is what the indexer is using as far as i can tell as F3 on an #include opens headers in /usr. How can I make the discovered cross-toolchain built-in include paths to be shown in the Project Explorer instead of the default compiler ones?

Update: seems there a bug or perhaps it is a user error, I enabled project-specific Indexer settings and voila, the expected paths are now shown. They continue to be listed even if I uncheck the project-specific indexer settings. It appears a change in the indexer settings triggers an update, shouldn't this be automatic?

[Updated on: Tue, 12 January 2016 21:49]

Report message to a moderator

Re: Project Explorer always shows default includes [message #1720147 is a reply to message #1719884] Thu, 14 January 2016 18:14 Go to previous messageGo to next message
Marc-André Laperle is currently offline Marc-André LaperleFriend
Messages: 256
Registered: July 2009
Senior Member
Do you have multiple configurations by any chance? Do you have the indexer preference set to "Active configuration" ? I'm thinking you are seeing https://bugs.eclipse.org/bugs/show_bug.cgi?id=313944

If it's not that, it would be good to try to reproduce the steps that got you there.
Re: Project Explorer always shows default includes [message #1720801 is a reply to message #1720147] Thu, 21 January 2016 07:29 Go to previous message
Vladimir Grishchenko is currently offline Vladimir GrishchenkoFriend
Messages: 104
Registered: July 2009
Senior Member
Yes on multiple configurations. Trying to reflect on what I did and I now think it was in fact due to the indexer preference not set to use "Active configuration" by default.
Previous Topic:Problem with program (Multiplication up to 100)
Next Topic:Where to See Active Build Configuration?
Goto Forum:
  


Current Time: Tue Apr 30 02:21:11 GMT 2024

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

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

Back to the top