Tuesday, June 14, 2011

GNU Global does not recognize C++ classes

By default, GNU Global does not treat .h files as source files. If you are using a C++ project, this is most likely the behavior you want. To treat .h files as source files, set the environment variable GTAGSFORCECPP. Run the following command or put it in your shell. Note, the example below is meant for Bash users.
export GTAGSFORCECPP=""

1 comment:

Anonymous said...

Thanks a lot for the solution!