63 |
Q3. I have set up 'gtags.conf' to use emacs's ctags command with GLOBAL |
Q3. I have set up 'gtags.conf' to use emacs's ctags command with GLOBAL |
64 |
but I cannot use htags. |
but I cannot use htags. |
65 |
|
|
66 |
% gtags |
$ gtags |
67 |
% htags |
$ htags |
68 |
htags: GTAGS and GRTAGS not found. Please make them. |
htags: GTAGS and GRTAGS not found. Please make them. |
69 |
% ls G* |
$ ls G* |
70 |
GPATH GTAGS |
GPATH GTAGS |
71 |
|
|
72 |
A3. Emacs's ctags cannot locate function referencies. So, gtags cannot make |
A3. Emacs's ctags cannot locate function referencies. So, gtags cannot make |
84 |
|
|
85 |
A5. Please check what is the gctags? You can check it with this command like. |
A5. Please check what is the gctags? You can check it with this command like. |
86 |
|
|
87 |
% which gctags |
$ which gctags |
88 |
% gctags --version |
$ gctags --version |
89 |
|
|
90 |
If the gctags is not the GLOBAL's one then you should set your PATH |
If the gctags is not the GLOBAL's one then you should set your PATH |
91 |
so that GLOBAL's gctags will be invoked. |
so that GLOBAL's gctags will be invoked. |
106 |
[library] /usr/src/lib |
[library] /usr/src/lib |
107 |
[your project] /usr/home/project |
[your project] /usr/home/project |
108 |
|
|
109 |
% (cd /usr/src/lib; gtags) |
$ (cd /usr/src/lib; gtags) |
110 |
% setenv GTAGSLIBPATH /usr/src/lib |
$ export GTAGSLIBPATH=/usr/src/lib |
111 |
% global strlen |
$ global strlen |
112 |
../../../usr/src/lib/libc/string/strlen.c |
../../../usr/src/lib/libc/string/strlen.c |
113 |
|
|
114 |
In htags(1), you can do it by copying them into your source project. |
In htags(1), you can do it by copying them into your source project. |
115 |
For example: |
For example: |
116 |
|
|
117 |
% cd /usr/home/project |
$ cd /usr/home/project |
118 |
% cp -r /usr/src/lib . |
$ cp -r /usr/src/lib . |
119 |
% gtags |
$ gtags |
120 |
% htags |
$ htags |
121 |
|
|
122 |
---------------------------------------------------------------------------- |
---------------------------------------------------------------------------- |
123 |
Q8. Deleted. |
Q8. Deleted. |