CodeLite installation/troubleshooting forum
ale
CodeLite Curious
Posts: 3 Joined: Fri Oct 04, 2013 11:05 am
Genuine User: Yes
IDE Question: c++
Contact:
Post
by ale » Fri Oct 04, 2013 11:14 am
I am using a library which has 1 header file that only includes of all of its files/classes, like
aheader.h
Code: Select all
#include "ClassA.h"
#include "ClassB.h"
...this file only contains #include
Then when creating a program, you will only need to include
aheader.h . But codelite's autocompletion won't work, it cannot show the contents of
ClassA
and others.
Is there a way to make codelite's code completion work on this kind of structure?
eranif
CodeLite Plugin
Posts: 6375 Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:
Post
by eranif » Fri Oct 04, 2013 12:08 pm
ale wrote: Is there a way to make codelite's code completion work on this kind of structure?
It should work.
So assuming your code looks something like:
What happens when you right click on the "aheader.h" and select 'Open Incude File "aheader.h"' ?
Can codelite find it?
Eran
ale
CodeLite Curious
Posts: 3 Joined: Fri Oct 04, 2013 11:05 am
Genuine User: Yes
IDE Question: c++
Contact:
Post
by ale » Fri Oct 04, 2013 4:25 pm
eranif wrote: What happens when you right click on the "aheader.h" and select 'Open Incude File "aheader.h"' ?
Can codelite find it?
Yes codelite finds and opens it.
I already tried retagging and reloading my workspace and project but it still does not work.
By the way, I'm using Linux Mint 15 32bit and the latest release of codelite
eranif
CodeLite Plugin
Posts: 6375 Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:
Post
by eranif » Fri Oct 04, 2013 4:38 pm
Can you please post some content of that include file? + the directory layout of the library?
Also, please post the content of your code completion search paths as described in the
HOW TO POST forum thread
Thanks,
Eran
ale
CodeLite Curious
Posts: 3 Joined: Fri Oct 04, 2013 11:05 am
Genuine User: Yes
IDE Question: c++
Contact:
Post
by ale » Fri Oct 04, 2013 5:02 pm
It is actually a cmake project.
All .cpp and .h files here: /home/ale/Applications/Parent/Lib/src . This is also the path I added in tag settings.
myLib.h contains a bunch of #include of all files/classes of the library
my Main.h
Code: Select all
#include "myLib.h"
using namespace myLib;
...
my Main.cpp
Code: Select all
#include "Main.h"
//This is where I need code completion
eranif
CodeLite Plugin
Posts: 6375 Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:
Post
by eranif » Fri Oct 04, 2013 5:18 pm
ale wrote: myLib.h contains a bunch of #include of all files/classes of the library
I wanted to view the content of myLib.h (please copy it exactly as you see it)
Eran