Community
Participate
Working Groups
Build Identifier: 20110615-0604 I'm unable to get Eclipse's indexer to recognize functions and types (like FILE) in stdio.h. Some other C library functions work, and some don't. I'm using Eclipse CDT to edit Embarcadero (formerly CodeGear, formerly Borland) C++Builder projects. It has a few vendor extensions to C++, but I can't see where those would affect C runtime libraries. I do not believe that this problem is new to CDT 8.0, but Codan's "could not be resolved" error messages make it much more obvious. If I press F3 in "#include <stdio.h>", Eclipse opens stdio.h as expected, so it is able to resolve the #include. Reproducible: Always Steps to Reproduce: 1. Open a C++Builder project in Eclipse CDT. 2. Open a source file that calls fopen or sprintf. 3. Note all the complaints from Codan.
Maybe some headers are included multiple times? (Bug 197989)
(In reply to comment #1) > Maybe some headers are included multiple times? (Bug 197989) I think that this issue is unrelated. If I include only stdio.h, I get the same symptoms.
(In reply to comment #2) > (In reply to comment #1) > > Maybe some headers are included multiple times? (Bug 197989) > > I think that this issue is unrelated. If I include only stdio.h, I get the > same symptoms. I mean inside stdio.h. Can you see files included multiple times in stdio.h or files that it includes?
(In reply to comment #3) > I mean inside stdio.h. Can you see files included multiple times in stdio.h or > files that it includes? I checked, and stdio.h has no duplicate includes.
Please attach the version of stdio.h you are using.
Created attachment 199154 [details] stdio.h and the files it includes from Embarcadero C++Builder stdio.h and the files it includes are attached.
(In reply to comment #6) > Created attachment 199154 [details] > stdio.h and the files it includes from Embarcadero C++Builder > stdio.h and the files it includes are attached. Hmm, I don't see any problems using these header files. I created a project with the headers added 'test.c' which includes 'stdio.h' and uses FILE. Does it work for you if you do the same? Please share a code snippet where 'FILE' cannot be resolved and create a parser-log for the file containing the snippet (Context menu of file in project explorer - Index - Create Parser Log).
No response from submitter.