Author Topic: Autocompletion for structs and STL not working  (Read 4176 times)

Offline Pressure

  • Single posting newcomer
  • *
  • Posts: 2
Autocompletion for structs and STL not working
« 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;
}



Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7256
Re: Autocompletion for structs and STL not working
« Reply #1 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 .

Offline Pressure

  • Single posting newcomer
  • *
  • Posts: 2
Re: Autocompletion for structs and STL not working
« Reply #2 on: October 15, 2011, 05:19:25 pm »
Nightly build worked like a charm. Thanks for your help.