I would like to know how to generate ctags and find them with auto-complete plugins for new libraries that I install in order to 1) auto-complete for 3rd party library namespaces, classes, etc. and 2) not have my syntax checking plugin think I have undefined references. In order to generate tags for my own new projects, I use this command:
map <C-F12> :!ctags -R --sort=yes --c++-kinds=+pl --fields=+iaSl --extra=+q .<CR>
But how do I adapt this to new libraries in my system? I have tried going to a library's include directory, run the above command, and then set the ctag path to find the tags file, e.g.
But then it seems that the tags are not found. I use the YouCompleteMe and I have the collect_identifiers parameter set:
let g:ycm_collect_identifiers_from_tags_files = 1
How can I enable ctags to find them? I can using Exuberant Ctags 5.9 and VIM 7.4.