GNU Global和GTAGS找不到类定义 [英] GNU Global and GTAGS can't find class definitions

查看:144
本文介绍了GNU Global和GTAGS找不到类定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难在全局范围内查找类/结构定义. 我可以用旺盛的ctags和cscope找到它们. 所有标记文件都是从相同的源文件列表构建的. 我仅指定--prefix来配置和构建global等. 配置确实发现了丰富的功能并正在使用它. 这些年来,我一直在全球范围内进行定期尝试,并且始终遇到这个问题. 有什么想法吗?

I'm having trouble getting global to find class/struct definitions. I can find them with exuberant ctags and with cscope. All tag files are built from the same source file list. I configured and built global, et.al., only specifying --prefix. configure did find exhuberant and is using it. I've been trying global periodically over the years and it's always had this problem. Any ideas?

谢谢, davep

推荐答案

只需导出此变量,这应该可以完成很多工作.在gtags-

Just export this variable and that should pretty much do. From the man page for gtags -

GTAGSFORCECPP If this variable is set, each file whose suffix is 'h' is treated as a C++ source file.

GTAGSFORCECPP If this variable is set, each file whose suffix is 'h' is treated as a C++ source file.

这篇关于GNU Global和GTAGS找不到类定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆