Page 1 of 1

Code Completion for External Libraries

Posted: Sat Mar 23, 2013 4:15 pm
by iwbnwif
Hello Eran and everyone,

I hope that this is my last path related question ;)

I have started using the wxSF framework (http://sourceforge.net/projects/wxsf/).

As I have built this in its own subdirectory (and it is not known to wx-config) I have added the library to the Project Settings->Linker->Library Paths and Libraries.

I have also added the include files path to the Project Settings->Compiler->Include Paths.

Finally I added the library to the LD_LIBRARY_PATH environment variable (in Project Settings->Environment)

My project builds and runs properly but I do not get code completion for any of the wxSF classes. Is there somewhere else that I need to tell CL where the classes are to achieve this?

Thanks!!

Re: Code Completion for External Libraries

Posted: Sat Mar 23, 2013 4:25 pm
by iwbnwif
Oops, I need to look harder before posting :oops:.

For anyone else with the same problem though, it is here:

Workspace->Open Active Project Settings->Code Completion

Simply add the include path of the external library to the "Search Paths" window.

Alternatively if you are using the library across multiple projects, you can set it here:

Settings->Tags Settings->ctags->Include Files

And add your library include path to the top window.

There is more information here: http://codelite.org/LiteEditor/SettingUpCodeCompletion