Hi,
The code completion doesn't work when using multiple files i.e. declaration and implementation are in the different files. I tried to look the answer from settings and from web but didn't found. More datailed description is below. I'm using Code::Blocks 8.02 Build:Fed 27 2008, 20:59:09 on Windows XP.
The code completion works fine when I have only on file. When I write inside the main function 'foo.' (without quotes) the completion list appears saying 'MemberFunction'.
main.cpp
#include <iostream>
using namespace std;
class Foo
{
public:
void MemberFunction(void)
};
void Foo::MemberFunction(void)
{
}
int main()
{
Foo foo;
//testing code completion here
return 0;
}
But when I split the code into three files (and add them to the project) the completion doesn't work anymore. When I now write inside the main function 'foo.' nothing happens. Also the symbols list is not showing anymore the Foo class.
main.cpp
#include <iostream>
#include "Foo.hpp"
using namespace std;
int main()
{
Foo foo;
//testing code completion here
return 0;
}
Foo.hpp
class Foo
{
public:
void MemberFunction(void);
};
Foo.cpp
#include "Foo.hpp"
void Foo::MemberFunction(void)
{
}
How can I make this to work? Thanks.