Community
Participate
Working Groups
1. create new c++ project and add 3 files: ------ test.cpp ------------- #define MY_DEF #include "test.h" ------- test.h---------------- #ifndef MY_DEF void f(); #endif -------- test1.cpp ---------- #include "test.h" void t() { f(); } 2. rebuild index. Open file test1.cpp There is an error "Function 'f' could not be resolved". on f(); call. In file test.h definition of void f(); will be gray out. P.S. if rename test.cpp to rest2.cpp and rebuild index again finction f() will resolved successfully. CDT: Version: 8.0.0.201105110004 Build id: 201105110004 -- Configuration Details -- Product: Eclipse 1.4.0.20110319-2300 (org.eclipse.epp.package.cpp.product) Installed Features: org.eclipse.platform 3.7.0.r20110302-9gF7SHCIFt6ms-lIjrC6vK_XO-IabJMKu
*** This bug has been marked as a duplicate of bug 197989 ***