Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » CDT » Can't configure Indexer to recognize "forced-included" files (/fi parameter)
Can't configure Indexer to recognize "forced-included" files (/fi parameter) [message #1059622] Mon, 20 May 2013 17:06 Go to next message
Mauro Faccenda is currently offline Mauro Faccenda
Messages: 2
Registered: May 2013
Junior Member
Hi all,

I am using Eclipse Indigo with Visual Studio 2012, and the code I am working on creates a header file (with tons of macro denifitions) that is included into every other file by using the force include parameter (/FI).

I was able to successfully configure the build parameters, by adding the parameter "/FI<filename.h>" on Project Properties->C/C++ Build->Settings->C Compiler (cl)->Miscellaneous.

But it seems the Indexer can't find the macros on the (previously) automatically created file. As a result, Eclipse shows tons of syntax error and non resolved types/symbols, but I am able to build the executable.

So, I was wondering if there is any way to specify this include so the Indexer recognizes the macros on it.


Thanks in advance,

UPDATE:
I am actually using Eclipse Juno, but tried also with Indigo.

[Updated on: Tue, 21 May 2013 10:53]

Report message to a moderator

Re: Can't configure Indexer to recognize "forced-included" files (/fi parameter) [message #1059907 is a reply to message #1059622] Wed, 22 May 2013 03:17 Go to previous messageGo to next message
Axel Mueller is currently offline Axel Mueller
Messages: 1829
Registered: July 2009
Senior Member
1) Open Windows->Preferences and go to C/C++->Property Pages Settings
2) Enable "Display Include Files on Paths and Symbols page
3) Open project properties and got to C/C++ General->Paths and Symbols
4) select tab Include Files
5) click Add button to add your header file filename.h (depending on your language you must add it for C and C++)


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Can't configure Indexer to recognize "forced-included" files (/fi parameter) [message #1060006 is a reply to message #1059907] Wed, 22 May 2013 10:09 Go to previous messageGo to next message
Mauro Faccenda is currently offline Mauro Faccenda
Messages: 2
Registered: May 2013
Junior Member
Hi Axel,

First, thank you for your help.

But I couldn't find the "Include Files" tab you mentioned, either on Indigo or Juno.

As you can see on these screenshots:

index.php/fa/15013/0/

index.php/fa/15014/0/

Is there anything else I can do to enable it?
Re: Can't configure Indexer to recognize "forced-included" files (/fi parameter) [message #1060143 is a reply to message #1060006] Thu, 23 May 2013 05:50 Go to previous message
Axel Mueller is currently offline Axel Mueller
Messages: 1829
Registered: July 2009
Senior Member
That's strange. It works for me on Juno. Did you try to close/reopen the project, restart Eclipse?

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Disabling file overview on click in "C/C++ Projects" tree view?
Next Topic:How to change project settings by script/tool
Goto Forum:
  


Current Time: Tue May 28 05:42:37 EDT 2013

Powered by FUDForum. Page generated in 0.01561 seconds