Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » How do I set a header file to be seen from everywhere?
How do I set a header file to be seen from everywhere? [message #763700] Sat, 10 December 2011 05:58 Go to next message
Eclipse UserFriend
I'm starting with Indigo. I have a quite large project, hundreds of source files,
with a special project header file what need to be seen in every module. The include of this file was omitted from the sources. The previous IDE what I used has no error parser in the editor and the include was written only in the make file.

How can I set up the project environment to solve the include of the system header without modifying hundreds of file?

Thanks in advance!

Da
Re: How do I set a header file to be seen from everywhere? [message #764520 is a reply to message #763700] Mon, 12 December 2011 05:45 Go to previous messageGo to next message
Eclipse UserFriend
I suppose you need the include for the Eclipse parser (compilation works with your Makefile). Then you need to open your Project Properties->C/C++ general->Indexer
"Files to index up-front": Here you should add your special header.
Re: How do I set a header file to be seen from everywhere? [message #766358 is a reply to message #764520] Thu, 15 December 2011 11:04 Go to previous messageGo to next message
Eclipse UserFriend
Unfortunately the methods isn't working.
It's driving me crease
The parser could only resolve the symbols in my system header if I include that both place, into the indexer configuration field and into the c source file

my header e.g. c:\ws\prj\system.h contains the full paths of all other header files amongst any other global symbols.
If I left it unincluded the all other include lines in the project were signed to be invalid. When I command the indexer to shown unresolved includes then it shows 0.
I really do not understand how it works.
Any info would be greatly appreciated.

[Updated on: Fri, 16 December 2011 10:00] by Moderator

Re: How do I set a header file to be seen from everywhere? [message #766669 is a reply to message #766358] Fri, 16 December 2011 03:34 Go to previous messageGo to next message
Eclipse UserFriend
Is your system header in the workspace? Is the indexer option "Index unused headers" enabled (Preferences->C/C++->Indexer)?
Re: How do I set a header file to be seen from everywhere? [message #766865 is a reply to message #766669] Fri, 16 December 2011 10:19 Go to previous message
Eclipse UserFriend
Yes it is in a folder linked into the workspace as a source folder.
I have tried some different settings on the indexer panel but I couldn't recognize any difference.
If I delete the include line from the file, those symbols are not parsed.
Previous Topic:Inactive code highlight does not work in *.h file
Next Topic:Configure Cross GCC Toolchain Assembler?
Goto Forum:
  


Current Time: Tue Jul 08 14:50:06 EDT 2025

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

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

Back to the top