open-declaration gets confused when there are two files with the same name [message #1417628] |
Fri, 05 September 2014 16:22 |
Eclipse User |
|
|
|
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 ).
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
|
|
|
Powered by
FUDForum. Page generated in 0.03559 seconds