VIM编辑器:使用cscope老是出现一些E259: no matches found for csope query 问题;

0 篇文章 0 订阅

 vim+ctags+cscope在mac os上的应用 时,经常出现 使用cscope老是出现一些E259: no matches found for csope query 问题。


在网上看了一下,有人说是源代码是 dos格式,不是unix格式导致的,其实经过检查,应该不是这个原因;


真正的原因是,用下面的命令生成cscope数据文件:出错了

  1. find . -name "*.h" -o -name "*.c" -o -name "*.m" >cscope.files
改为:
  1. find ./ -name "*.h" -o -name "*.c" -o -name "*.m" >cscope.files

  2. 重新更新产生,cscope.out 后(相关命令脚本,请搜索网络), 再使用cscope的命令:就没有什么问题了。

cscope commands:

add  : Add a new database            (Usage: add file|dir [pre-path] [flags])

find : Query for a pattern           (Usage: find c|d|e|f|g|i|s|t name)

       c: Find functions calling this function

       d: Find functions called by this function

       e: Find this egrep pattern

       f: Find this file

       g: Find this definition

       i: Find files #including this file

       s: Find this C symbol

       t: Find this text string

help : Show this message             (Usage: help)

kill : Kill a connection             (Usage: kill #)

reset: Reinit all connections        (Usage: reset)

show : Show connections              (Usage: show)


评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值