For some reason the code completion for the Eclipse CDT I’m running (in Ubuntu linux) isn’t working properly. Every time I include a library nothing pops up. Is there any reason why this could be?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Including a header in your source code is not enough. You need to tell the indexer where to look for the header. To do so, you need to go to your project’s properties, navigate to the
C/C++ General > Paths and Symbolsitem. In theIncludestab, add the folder containing your headers for theGNU C++language. You may also need to define a few symbols in theSymbolstab if your library needs it.Now you’ll just have to wait for the indexer to do it’s thing and auto-completion should start working. Keep in mind that the indexer isn’t perfect and complicated C++ headers like the STL can confuse it pretty easily.