我在xp上装了ubuntu虚拟机,xp共享share目录给ubuntu挂载:
sudo mount //192.168.xx.xx/share /home/xsun/myxp -o,rwx,uid=1000,gid=1000,username=xsun,password=sun
于是ubuntu可以对xp的share目录可以进行读写了。
cscope脚本:
#!/bin/sh
find . -name "*.h" -o -name "*.c" -o -name "*.cc" > cscope.files
cscope -bkq -i cscope.files
我把工作代码放在myxp下,cscope.files内容正常,cscope -bkq -i cscope.files时提示 cscope.files中的文件全找不到。如下:
cscope: cannot find file xxxx.c
cscope: cannot find file yyy.c
..........
cscope: no source files found
直接用cscope -R后提示也是所有本目录下的文件都找不到。
但是如果我同样的代码放在一般的目录下/home/xsun/work下cscope正常,可以生成cscope.out。
两个目录的区别是前者是一个xp的共享目录,ubuntu通过挂载访问。不知道cscope为何都找不到所有文件。求助各路大仙啊!
cscope求助
-
- 帖子: 5
- 注册时间: 2012-12-13 17:14
- 系统: Ubuntu-12.04 LTS
-
- 帖子: 5
- 注册时间: 2012-12-13 17:14
- 系统: Ubuntu-12.04 LTS
Re: cscope求助
垃圾论坛