Hi,
I've a problem with autocompletion.
Beside all, I want to know if I had to create a new project in order to use autocompletion, or if I can use autocompletion also with a single c++ file.
Then, an example:
suppose I've this simple code:
#include <iostream>
#include <conio.h>
#include <math.h>
using namespace std;
int main(int argc, char **argv)
{
cout<<"Hello world!"<<endl;
cout<<"Press a key to continue...";
getch();
return 0;
}
this is the main file of a codeblocks project.
in this code if I begin to write getch() nothing compare, even though I press ctrl+space;
the same if I begin to write any math.h function.
I've noticed if I go to project->properties->search directories and add the include dir of mingw installation, code completion works.
But, in this way for every project I create, I must manually add the mingw include directory.
This is normal if I want to incluide a my own library I want to use;
but not if I want to use the standard c++ library.
So I think I've missed something.
What's the correct way to proceed?
Thank you in advance.
pv