Add'l Search Path + Tag Settings

General questions regarding the usage of CodeLite
cgp1024
CodeLite Curious
Posts: 8
Joined: Mon Nov 30, 2009 7:01 pm
Genuine User: Yes
IDE Question: c++
Contact:

Add'l Search Path + Tag Settings

Post by cgp1024 »

Is there a way to automatically add / merge the path(s) specified in the compiler specified Additional Search Path, to the Tag / Include Files?

Seems like these should be the same list ?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Add'l Search Path + Tag Settings

Post by eranif »

cgp1024 wrote:Seems like these should be the same list ?
I agree, however this caused a problem in the past.

For example: when using a custom build, user does not use codelite's include paths (from the project settings) since he is using his own makefile/qmake/configure/etc

For those users, code-completion wont work.

I might use a different approach:

- codelite will auto-detect the search paths for the default libraries (/usr/include, /usr/include/c++ etc)
- the rest of the search path will be taken from the project settings

Two problems to workaround here:

- The paths must be in absolute paths (this might cause problems when working with different volumes under Windows)
- expanding backticks/environment variables/codelite's macros

Eran
Make sure you have read the HOW TO POST thread
Post Reply