Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Documentation of STL not showing
Documentation of STL not showing [message #207122] Tue, 25 December 2007 13:13 Go to next message
Eclipse UserFriend
I'm using the mingw compiler on windows XP, and the latest version of
eclipse with CDT.
When hovering over an STL function (for instance:
vector v;
v->empty();
Mouse hover over empty)
Nothing is shown. When pressing F3 on an STL function eclipse says "could
not find symbol '<stl function name>' in index.
I want that the documentation for the function will be shown when hovering
over it. Code assist (autocompletion) works for STL functions BTW.

What can I do so that it would appear?
Re: Documentation of STL not showing [message #207133 is a reply to message #207122] Tue, 25 December 2007 15:48 Go to previous messageGo to next message
Eclipse UserFriend
Elazar Leibovich wrote:
> I'm using the mingw compiler on windows XP, and the latest version of
> eclipse with CDT.
> When hovering over an STL function (for instance:
> vector v;
> v->empty();
> Mouse hover over empty)
> Nothing is shown. When pressing F3 on an STL function eclipse says
> "could not find symbol '<stl function name>' in index.
> I want that the documentation for the function will be shown when
> hovering over it. Code assist (autocompletion) works for STL functions BTW.
>
> What can I do so that it would appear?
>

Hi, when that happens to me I rebuild the index.

Goto Project Explorer
right-click on the project
and select Index -> Rebuild.

That usually works for me. If that isn't working youmight not have you
include path set correctly.

Go to your project Properties
select the C/C++ Build -> Settings
go to Tool Settings tab and C++ Compiler -> Directories.
Make sure you have your path in there that points to where your C++
libraries are located. Once that is set, rebuild index.

Jim
Re: Documentation of STL not showing [message #207140 is a reply to message #207133] Wed, 26 December 2007 00:08 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for your reply
I tried that and included the STL libraries, "c:/minGW/includes/c++/3.95/".
Now when pressing F3 over a word it says "Cannot resolve selected text to
a defined type"
for the following program:
vector<int> v;
v->insert();
And also:
vector v;
v->insert();

It DOES recognize the vector type, and clicking F3 on vector drops me at
the relevant file.

Maybe the templates drives eclipse's indexer crazy?
Re: Documentation of STL not showing [message #207157 is a reply to message #207140] Wed, 26 December 2007 15:55 Go to previous message
Eclipse UserFriend
Indeed, CDT can't autocomplete STL's templates, please look here:
http://wiki.eclipse.org/CDT/planning/5.0
Previous Topic:Folding loops and if conditions
Next Topic:Managing C++ header files without extensions
Goto Forum:
  


Current Time: Wed Jul 23 06:45:44 EDT 2025

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

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

Back to the top