Chinaunix首页 | 论坛 | 博客
  • 博客访问: 447183
  • 博文数量: 138
  • 博客积分: 4114
  • 博客等级: 上校
  • 技术积分: 1341
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-14 20:41
文章分类

全部博文(138)

文章存档

2014年(1)

2013年(2)

2012年(78)

2011年(13)

2010年(34)

2009年(10)

我的朋友

分类: LINUX

2009-06-04 11:26:22

      This is my first works, i want to configure cscope in my box, and use it to browse source code.  you can follow the below steps if have the some idea with me.

step 1:
     because i have installed cscope in my box, so if you haven't , please first google and then down it.

step 2:
     cd to the source code directory, then execute below command:
     find $(pwd) -name "*.[ch]" >cscope.files

     if you want to cscope cpp files, you should do like this
     find $(pwd) -or -name "*.c" -or -name "*.cpp" -or -name "*.h"
      > cscope.files

    

step 3:
     built the cscope database:
          cscope -Rbkq

step 4:
     man cscope and learn the command about cscope

step 5:
     other things,there are some tricks in the cscopes's home page.
     if you want to learn more do it yourself.
   

    

阅读(662) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:linux fstat

给主人留下些什么吧!~~