[CMake] eclipse generator and code completion

Antoine DUCHAMPS antoine.duchamps at gmail.com
Mon May 4 05:40:47 EDT 2009


Le lundi 04 mai 2009 à 10:36 +0200, Eric Noulard a écrit :
> 2009/5/4 Antoine DUCHAMPS <antoine.duchamps at gmail.com>:
> > hi Miguel,
> >
> > thanks for responding!
> >
> > I'm sorry, I had misunderstood the wiki page. I've followed the steps
> > and I can navigate the source code now.
> >
> > However, the code completion does not work. My application is linked to
> > an external library (ITK) and I would like to have code completion for
> > the ITK classes. In kdevelop you have to import the folders containing
> > the .h files. Do you know how it works in eclipse?
> 
> You have to add the folder containing the .h files in the list of
> "includes" for the project.
> Use
> 
> Properties on the Project
>    --> C/C++ General
>          --> Path and Symbols
>               --> C++
> 
> works for me, "most of the time", I say most of the time since I do have
> some C++ header bloated with macros for which completion does not work at all.
> 

Hi Eric,

It doesn't work for me. I'm not sure if we are doing the same ... In my
eclipse version I indicated the include folder by doing

Project -> Properties -> C++ include paths and symbols -> Add External
Include Path ...

This is not exactly the same as in your case ... which eclipse CDT
version are you using? 

thanks!

antoine





More information about the CMake mailing list