Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » open-declaration gets confused when there are two files with the same name(Navagating in project)
open-declaration gets confused when there are two files with the same name [message #1417628] Fri, 05 September 2014 20:22
Amir Nahir is currently offline Amir NahirFriend
Messages: 3
Registered: July 2014
Junior Member

I have a C project in which there are multiple files with the same name, so I have things like

/Dir1/File1.h

/Dir2/File1.h

And in some files I have a statement including File1.h. My makefile system knows how to pick up the right file.

Assume Dir1/File1.h has: #define CONSTANT_X 1

and in some other file I include File1.h and use that constant. /Dir2/File1.h doesn't include that (the guy supporting that system is behind on his tasks Smile ).

In most files, when editing code, Eclipse is OK with it, and doesn't complain about the type, and, if I go-to-file on the include statement, a pop-up window will let me choose between /Dir1/File1.h and /Dir2/File1.h

However, in some files that doesn't work - Eclipse/CDT marks the constant and states "Symbol could not be resolved".

All my files are within a single C project. All files are pretty short (so I believe they are all fully indexed).

What can be the difference leading eclipse to get confused??

Thanks! Amir
Previous Topic:Cannot use eclipse to debug
Next Topic:I want to install new software
Goto Forum:
  


Current Time: Wed Oct 09 01:37:32 GMT 2024

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

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

Back to the top