Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Pressure on October 15, 2011, 04:36:31 pm

Title: Autocompletion for structs and STL not working
Post by: Pressure on October 15, 2011, 04:36:31 pm
Hi, I can't seem to get autocompletion to work. I know this has probably been anwered 100000 times but I couldn't find the answer in searches. I'm using CodeBlocks 10.05 for Windows 7.

Thanks for your help.

Code
#include <iostream>
#include <string>
#include <vector>
using namespace std;

typedef struct
{
    int x,y;
} Point;

class PointClass
{
public:
    int _x,_y;
};


int main()
{
string s;
vector<int> v;
Point a;
PointClass b;
v. // nothing happens
s. //nothing happens
a. //nothing happens
b. // works

return 0;
}


Title: Re: Autocompletion for structs and STL not working
Post by: Jenna on October 15, 2011, 04:58:31 pm
The codecompletion has improved a lot since the 10.05 release.

If you use a recent nightly build, it should work (at least it works fine on linux with an actual version).
See: Nightly builds forum (http://forums.codeblocks.org/index.php/board,20.0.html) .
Title: Re: Autocompletion for structs and STL not working
Post by: Pressure on October 15, 2011, 05:19:25 pm
Nightly build worked like a charm. Thanks for your help.