Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Completion: std namespace almost empty
Completion: std namespace almost empty [message #195479] Fri, 06 July 2007 06:53
Eclipse UserFriend
#include <iostream>

std:://no iostream typedef among completion proposals!

The problem is caused by indexer's inability to parse the macro call that
the standard headers coming with gcc 4.2.1 use to open the std namespace:

_GLIBCXX_BEGIN_NAMESPACE(std)

Here's how bits/c++config.h defines that macro:

#define _GLIBCXX_VISIBILITY(V)\
__attribute__ ((__visibility__ (#V)))

# define _GLIBCXX_BEGIN_NAMESPACE(X)\
namespace X _GLIBCXX_VISIBILITY(default) {

It seems that the scanner cannot properly recognize the expansion:

namespace std __attribute__ ((__visibility__ ("default"))) {

I could work around the problem by employing a nasty kludge involving a
modified copy of bits/c++config.h and exploiting a deficiency of the
configuration scanner that makes it possible to specify additional include
search paths for the build that won't be seen by the indexer.

SZczepan Holyszewski
Previous Topic:Strange memory problems
Next Topic:Eclipse3.3, CDT4.0, Managed Make invisible
Goto Forum:
  


Current Time: Sat Jul 05 18:01:13 EDT 2025

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

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

Back to the top