Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Resolve path inconsistencies in C++ Indexer(Trying to deteermine how to get .h files that compile to also index using the correct path)
Resolve path inconsistencies in C++ Indexer [message #1778398] Wed, 13 December 2017 19:44 Go to next message
Joseph Johnson is currently offline Joseph JohnsonFriend
Messages: 1
Registered: December 2017
Junior Member
I have a project with many files that is indexing some of the way with the C++ Indexer, but not ALL of the files get indexed.

For example log.h is a file in the ../common/log.h location in my source code.
The code compiles, but the indexer is having trouble locating this file. When I mouse over on the #include <log.h> I get a reference to the Logarithm function in math.h. When I try to use the "Open Declaration" (F3) option, then an error shows up on the page "Selected text cannot be mapped to a symbol name"

Is there a way I can resolve the inconsistency by telling the C++ Indexer where the log.h is located, and to give that file a higher priority over other locations that may also have a log.h file?
Re: Resolve path inconsistencies in C++ Indexer [message #1778529 is a reply to message #1778398] Fri, 15 December 2017 18:22 Go to previous messageGo to next message
David Vavra is currently offline David VavraFriend
Messages: 644
Registered: October 2012
Senior Member
You can specify them in
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc. --> Entries --> CDT User Settings Entries

Here's an example:
index.php/fa/31606/0/

[Updated on: Fri, 15 December 2017 18:23]

Report message to a moderator

Re: Resolve path inconsistencies in C++ Indexer [message #1780145 is a reply to message #1778529] Thu, 18 January 2018 07:00 Go to previous message
polly handid is currently offline polly handidFriend
Messages: 1
Registered: January 2018
Junior Member
yes, this Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc. --> Entries --> CDT User Settings Entries works
Previous Topic:Launch failed. Binary not found.
Next Topic:continue to use Eclipse?
Goto Forum:
  


Current Time: Mon Jan 22 12:45:14 GMT 2018

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

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