6

以下命令工作正常:

   $>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

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

4

1 回答 1

9

我现在明白了!!!

像往常一样,应该正确阅读手册 :-) 我使用的是来自 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-22T07:12:15.763 回答