Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to index external folder?
How to index external folder? [message #1836227] Thu, 24 December 2020 23:21 Go to next message
Manuel Malagon is currently offline Manuel MalagonFriend
Messages: 81
Registered: December 2011
Member
I have a project that is referencing CppUTest as an external library. The library and the header files are not located in my project's root folder. To make the compilation work I have the following C and C++ compiler flag:
$(CPPUTEST_HOME)/include

And I have the following on the linker "Libraries" section:

index.php/fa/39604/0/

The project is compiling just fine and everything works. It is just that I don't know how to configure eclipse so it can index right. I'm having these indexing errors in the CDT editor:

index.php/fa/39605/0/

Is nothing functional but it is annoying and I'd like to fix the indexing if possible.

How do I configure eclipse so it indexes the external folder?

Re: How to index external folder? [message #1836238 is a reply to message #1836227] Fri, 25 December 2020 18:13 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
By changing the settings in Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc.
Perhaps this article will help.
https://www.eclipse.org/community/eclipse_newsletter/2013/october/article4.php

Re: How to index external folder? [message #1836261 is a reply to message #1836238] Sun, 27 December 2020 02:41 Go to previous message
Manuel Malagon is currently offline Manuel MalagonFriend
Messages: 81
Registered: December 2011
Member
I found the problem. The configuration should be
${CPPUTEST_HOME}/include


And not
$(CPPUTEST_HOME)/include
Previous Topic:Symbol std::filesystem could not be resolved
Next Topic:How do I remove obsolete includes directories from Paths and Symbols?
Goto Forum:
  


Current Time: Thu Oct 10 02:42:45 GMT 2024

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

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

Back to the top