Skip to main content



      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 14:44 Go to next message
Eclipse UserFriend
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 13:22 Go to previous messageGo to next message
Eclipse UserFriend
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 13:23] by Moderator

Re: Resolve path inconsistencies in C++ Indexer [message #1780145 is a reply to message #1778529] Thu, 18 January 2018 02:00 Go to previous messageGo to next message
Eclipse UserFriend
yes, this Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc. --> Entries --> CDT User Settings Entries works
Re: Resolve path inconsistencies in C++ Indexer [message #1782979 is a reply to message #1778398] Mon, 05 March 2018 22:49 Go to previous messageGo to next message
Eclipse UserFriend
Why wouldn't you use this Project --> Properties --> C/C++ General --> Paths and Symbols -> Includes and add your include directories.
Re: Resolve path inconsistencies in C++ Indexer [message #1782986 is a reply to message #1782979] Tue, 06 March 2018 01:00 Go to previous message
Eclipse UserFriend
Short answer:
For the same reason I like my steaks medium rare.
It's largely a matter of taste.
YMMV

Long answer:
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc.
is the consolidated discovery dialog for the Indexer.
So, it directly and minimally answers the question posted.
It has no side-effects that I am aware of.

I don't see much point in enumerating all the ways a solution can be had.
My time is limited.





[Updated on: Tue, 06 March 2018 01:44] by Moderator

Previous Topic:CDT 9.4.2 C/C++ Projects view, two 'Build Project' entries
Next Topic:[CDT 9.4] Error on building indexes with Boost libraries 1.46
Goto Forum:
  


Current Time: Wed Jul 23 23:31:33 EDT 2025

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

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

Back to the top