Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: rogeriodec on May 28, 2018, 05:27:21 am

Title: Vector code-completion not working just for one project
Post by: rogeriodec on May 28, 2018, 05:27:21 am
I have a project that I have been working on for some time and I just started using Vector.
It compiles normally, but code-completion does not work just for vector.
The curious thing is that code-completion works for other projects with vectors.
I've done a lot of testing, but I could not find what might be causing this.
Can anyone know why code-completion sometimes does not work for vector?

EDIT:
I was suspicious that my project was corrupted in some way, so I created a new project from scratch, and just copied main.cpp to the new project folder.
Even so, code-completion for vector still does not appear ...
Title: Re: Vector code-completion not working just for one project
Post by: sodev on June 01, 2018, 05:36:04 pm
With so few information given you need a really good crystal ball to find the answer. Well, lets give it a start.

Which language? Ok, file extension is cpp, probably C++.
Which vector? Hard to say, lets assume the most simple case, its from the STL, so std::vector.
Which compiler, os, architecture? Unknown

Well, what can it be? Most probably again a C++11 issue, either the STL contains fancy C++11 stuff the parser doesn't understand or the vector value-type uses fancy C++11 stuff the parser doesn't understand.