Hello, That parser does not regard extern declaration as a definition. The actual function definition of fprintf is required. In my FreeBSD, it works well.
$ cd /usr/src/lib # library source directory (includes fprintf) $ gtags $ export GTAGSLIBPATH=/usr/src/lib $ cd /usr/src/usr.bin/ctags # Anywhere is fine $ gtags $ global fprintf ../../lib/libc/stdio/fprintf.c <= picked up fprintf's definition $ _ Regards, Shigio 2018年9月3日(月) 5:35 R G <[email protected]>: > > Hello, > > I am using Gnu Global 6.6.2 to generate tags from some files in > `/usr/include`. I am also using Universal Ctags as a plugin. > > When i try to execute `$ global fprintf`, the stdio.h header file does not > appear. > > Here is some information about what I am using: > > `$ global --version > global (GNU GLOBAL) 6.6.2 > Copyright (c) 1996-2017 Tama Communications Corporation > License GPLv3+: GNU GPL version 3 or later > <http://www.gnu.org/licenses/gpl.html> > This is free software; you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law.` > > And Ctags version, for the sake of completeness: > > `$ ctags --version > Universal Ctags 0.0.0(f9bbb35e), Copyright (C) 2015 Universal Ctags Team > Universal Ctags is derived from Exuberant Ctags. > Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert > Compiled: Sep 2 2018, 16:47:42 > URL: https://ctags.io/ > Optional compiled features: +wildcards, +regex, +iconv, +option-directory, > +xpath, +json, +interactive, +sandbox, +yaml` > > And some relevant environment variables: > > $GTAGSCONF=/usr/share/gtags/gtags.conf > $GTAGSLABEL=new-ctags > $GTAGSLIBPATH=/usr/include > > I think this is enough information, I would appreciate some help! > > Thank you, > Romeu > > > _______________________________________________ > Help-global mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/help-global -- Shigio YAMAGUCHI <[email protected]> PGP fingerprint: 26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB _______________________________________________ Help-global mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-global
