Community
Participate
Working Groups
Just started using Eclipse on a Fedora machine, it's based on version 3.4.2 with CDT 5.0.2.200903191301 and if I have a single source with [CODE]#include <boost/gil/extension/io/png_dynamic_io.hpp>[/CODE] The indexer hangs; fast or full index. Also tried skip all references. If it replace the #include with the actual file contents then it doesn't hang. type filter text
In general versions before CDT 6.0 don't work well for code with c++ templates. You need to upgrade CDT. Your specific example is a performance issue. It takes 19 minutes to index the file plus its headers. In CDT 6.0.2 or 7.0 the same code is indexed in 47 sec. When you paste the content of the header into the source file, the indexer no longer picks up some of the includes, which makes it fast but incomplete. Here are the statistics: 5.0.2: (1 sources, 601 headers) in 1,147.11 sec: 53,990 declarations; 513,881 references; 1 unresolved inclusions; 76 syntax errors; 6,453 unresolved names (1.12%) 6.0.2: (1 sources, 610 headers) in 46.62 sec: 54,017 declarations; 437,202 references; 3 unresolved inclusions; 76 syntax errors; 2,161 unresolved names (0.44%) 7.0.0: (1 sources, 610 headers) in 47.76 sec: 53,903 declarations; 437,509 references; 3 unresolved inclusions; 74 syntax errors; 2,112 unresolved names (0.43%) 5.0.2 with header pasted into source: (1 sources, 119 headers) in 2.08 sec: 8,389 declarations; 17,165 references; 5 unresolved inclusions; 0 syntax errors; 535 unresolved names (2.05%)