简体   繁体   English

无法生成cscope.out文件

[英]Can't generate cscope.out file

I am using cscope on a project which locates in author/trunk/ . 我在位于author / trunk /中的项目上使用cscope。 Under "author" directory cscope -R worked well and generated cscope.out. 在“作者”目录下,cscope -R运行良好,并生成了cscope.out。 However when using same commmand on a subdirectory like author/trunk/../dhcp, no cscope .out was generated ,and had "no cscope connection" when I wanted to search in one file So what should I do now ,THanks 但是,当在author / trunk /../ dhcp之类的子目录上使用相同的命令时,没有生成cscope .out,并且当我想在一个文件中搜索时“没有cscope连接”,所以现在该怎么办,谢谢

First, I recommend using cscope -bkqR instead of the simpler cscope -R . 首先,我建议使用cscope -bkqR而不是更简单的cscope -R

Second, I think you need to start cscope in the same directory where cscope.out is located or you'll get the error you mentioned. 其次,我认为您需要在cscope.out所在的目录中启动cscope ,否则您将得到提到的错误。 At least, this is true for vim . 至少,这对于vim是正确的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM