Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Indexer doesn't recognize #ifdef after compilation
Indexer doesn't recognize #ifdef after compilation [message #1065320] Tue, 25 June 2013 06:16 Go to next message
Eclipse UserFriend
Hello,

I am compiling a project in Juno 4.2.2 where i have some #ifdefs defined at compile time.
The project compiles and runs successfully, but the activated #ifdefs remain greyed out in the code editor and i get unresolved conflicts because the functions inside the #ifdef are not accessed by the indexer.

If i add the #ifdef symbol to the indexer, the problem is solved, but in previous versions of eclipse these symbols were added after compiling...

Was there any change? Or something else i can do to have that behaviour again?
Re: Indexer doesn't recognize #ifdef after compilation [message #1065530 is a reply to message #1065320] Wed, 26 June 2013 07:28 Go to previous messageGo to next message
Eclipse UserFriend
In Project Properties->C/C++ General->Preprocessor Includes.. do you have the "GCC Build Output Parser" provider enabled?
Re: Indexer doesn't recognize #ifdef after compilation [message #1065533 is a reply to message #1065530] Wed, 26 June 2013 07:39 Go to previous messageGo to next message
Eclipse UserFriend
Yes. Those are all the default settings.
Re: Indexer doesn't recognize #ifdef after compilation [message #1065948 is a reply to message #1065533] Fri, 28 June 2013 08:56 Go to previous messageGo to next message
Eclipse UserFriend
Maybe something that can help you help me, i have two folders with source code that share some of the symbols.
in one of them the symbols passed through the makefile are recognized by the indexer, in the other folder they are not.
Re: Indexer doesn't recognize #ifdef after compilation [message #1066134 is a reply to message #1065948] Mon, 01 July 2013 04:02 Go to previous messageGo to next message
Eclipse UserFriend
Ricardo Filipe wrote on Fri, 28 June 2013 14:56
Maybe something that can help you help me, i have two folders with source code that share some of the symbols.
in one of them the symbols passed through the makefile are recognized by the indexer, in the other folder they are not.

Are both folders part of the same project?
Re: Indexer doesn't recognize #ifdef after compilation [message #1124586 is a reply to message #1066134] Thu, 03 October 2013 13:44 Go to previous message
Eclipse UserFriend
Sorry for ressurecting this thread, but I have the same problem with the same project now that I have updated to kepler. I had included the most important symbols previously, hence i didn't followup the thread, but my mind does not rest while this problem still exists.

To answer your question: Yes, both folders are from the same project.
Furthermore, on a same folder, some files have the gcc build output parser work and give them the symbols, while others don't. I can notice that most of the files that have the symbols are .cc ones, while no .h being compiled has symbols added by BOP.
Previous Topic:Indexing Enumerations with #includes
Next Topic:executable dll dependancy on other PC
Goto Forum:
  


Current Time: Thu May 15 17:50:38 EDT 2025

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

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

Back to the top