Specifying out-of-tree include paths

View: New views
2 Messages — Rating Filter:   Alert me  

Specifying out-of-tree include paths

by Gerdin Tobias :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Thank you for GNU Global.  It's really quite nice.

I have a question:

1) How do I specify out-of-tree include paths in the case of a C++ project?  Ie, I have files included like

#include "file.h"

which are not reachable recursively from the directory where the project sources are kept (which is where I run gtags).

I would expect that there is an option (like the -I flag to a C compiler) to specify such directories manually (otherwise these include files, often specifying different interfaces, will be unparsed!)


Regards,

Tobias Gerdin


_______________________________________________
Help-global mailing list
Help-global@...
http://lists.gnu.org/mailman/listinfo/help-global

Re: Specifying out-of-tree include paths

by Shigio YAMAGUCHI-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
> 1) How do I specify out-of-tree include paths in the case of a C++ project?=
>   Ie, I have files included like
>
> #include "file.h"
>
> which are not reachable recursively from the directory where the project so=
> urces are kept (which is where I run gtags).

You can use GTAGSLIBPATH environment variable for the purpose.
Please see the online manual (man global(1) or info global) for the detail.
--
Shigio YAMAGUCHI <shigio@...>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


_______________________________________________
Help-global mailing list
Help-global@...
http://lists.gnu.org/mailman/listinfo/help-global