【问题标题】:Cscope unable to create inverted index. Why?Cscope 无法创建倒排索引。为什么?
【发布时间】:2010-10-28 12:02:57
【问题描述】:

以下命令可以正常工作:

   $>cscope -b -R

但是,倒排索引的选项不起作用:

$>cscope -b -q -k -R
Input file specified two times.

cscope: cannot create inverted index; ignoring -q option
cscope: removed files ncscope.in.out and ncscope.po.out

我用谷歌搜索了这个,发现了一些命中。但找不到任何答案或解决方案。非常感谢任何见解。

【问题讨论】:

    标签: vim cscope


    【解决方案1】:

    我知道了!!!

    像往常一样,应该正确阅读手册:-) 我正在使用来自 Google 的 cscope 的 win32 端口。 (托管在:http://code.google.com/p/cscope-win32/)。以下是“wiki”标签的摘录 (http://code.google.com/p/cscope-win32/wiki/UsageNotes?tm=6)

    •要使用倒排索引(-q 选项),您需要排序实用程序。我在 cscope 存档中包含一个(这是它的源代码)。该实用程序也可以在 UnxUtils 和 http://gnuwin32.sf.net 上找到。它应该在 Windows 目录之前的 PATH 中,因为 Windows 有自己的不兼容的排序实用程序。

    注意:我实际上需要将排序实用程序放在 c:\windows\system32 之前。 (在路径中的 c:\windows 之前包含它是不够的)。

    完成之后,我很高兴地说我能够创建倒排索引。

    【讨论】:

      猜你喜欢
      • 2010-12-06
      • 2015-01-17
      • 1970-01-01
      • 2017-02-12
      • 1970-01-01
      • 1970-01-01
      • 2011-02-03
      • 1970-01-01
      • 2014-12-03
      相关资源
      最近更新 更多