一.下载安装
1.检测是否
[root@andes.com /andes/project/mkdemo/src/isql]#vim --version |grep cscope
+cryptv +cscope +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic
2.下载:cscope 源码
http://cscope.sourceforge.net/
http://sourceforge.net/projects/cscope/files/cscope/
3. 安装:
如未安装flex,需要先安装flex
yum install flex
./configure
make
make install
上述不行,使用下面命令:
make distclean
./configure --with-flexmake
二. 生成cscope文件列表和数据库:
生成脚本:
#!/bin/bash
echo "Begin TO Generage cscope.files..."
find . -name "*.h" -o -name "*.c" -o -name "*.cc" > cscope.files
ls -l csco