There's an exact questioned that is already here !, but with no detailed solution, so asking again. I followed this ! tutorial:
find . -name "*.c" -o -name "*.cpp" -o -name "*.h" -o -name "*.hpp" > cscope.files
cscope -q -R -b -i cscope.files
cscope -d
when I execute the last command, I get an error: cscope: can not read list size from file cscope.out.
files sizes:
$ ls -l | grep cscope
-rw-r--r-- 1 tnsharma wheel 8230153 May 29 11:13 cscope.files
-rw-r--r-- 1 tnsharma wheel 280810496 May 29 11:39 cscope.in.out
-rw-r--r-- 1 tnsharma wheel 3471526675 May 29 11:39 cscope.out
-rw-r--r-- 1 tnsharma wheel 1929521640 May 29 11:39 cscope.po.out
Any idea how to make this work? -Thanks
Update: I am able to use cscope in the sub folders. But don't know how to link the cscope.out files across the sub folders to make it global.
Your cscope.out
is too large for it to work.
Try reducing the number of files that you parse when doing cscope -R
or -b
by creating a cscope.files
files.
I have given a solution in case where your directory name , or the path of the directory has space(s) . Rename directory without space(s) and retry. Check this https://stackoverflow.com/a/30423629/3936129
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.