Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Cannot find references or declaration in the gray part(Cannot find references or declaration in the gray part)
Cannot find references or declaration in the gray part [message #725216] Wed, 14 September 2011 05:24 Go to next message
Eclipse UserFriend
Hi CDT members.

I use Eclipse Helios C/C++
and my problem is the references in project or open declaration is not working on gray part in the passive part of code. How can I reach to work there too?
Re: Cannot find references or declaration in the gray part [message #725222 is a reply to message #725216] Wed, 14 September 2011 05:49 Go to previous message
Eclipse UserFriend
Passive code is not in the index. Therefore, all code navigation does not work.
e.g.
#if MYDEFINE
passive code
#
You have to manually add the symbol MYDEFINE (Project Properties->C/C++ General->Paths and Symbols) and rebuild the index.
But beware that a possible #else part then will be greyed out!
If this symbol is only used locally you can also modify your code temporarily, i.e. replace "#if MYDEFINE" with "#if 1". That's much faster.
Previous Topic:Is there a way to cancel the code assist after it's already been activated?
Next Topic:problem with HUGE pointer
Goto Forum:
  


Current Time: Sat Jul 19 11:43:46 EDT 2025

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

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

Back to the top