[Ubuntu小技巧系列之二]programming in C from scratch

Posted by c4pr1c3 on June 8, 2009

 工具链

  • build-essential              Informational list of build-essential packages

手册页

  • manpages-dev              Manual pages about using GNU/Linux for development
  • glibc-doc                      GNU C Library: Documentation
  • manpages-posix-dev    Manual pages about using a POSIX system for development

以上所有工具/文档统一使用apt-get来安装。

IDE

  • http://www.vim.org下载vim的源代码

  • 下载编译vim所依赖的所有libs

    $ sudo apt-get build-dep vim

  • http://clewn.sourceforge.net下载vimgdb
  • 按照vimgdb压缩包中的说明,给vim打补丁,编译生成可执行程序

交叉索引/自动补全

  • ctags

    code_complete的函数自动补全demo

    *配合vim的OmniCppComplete插件实现C结构体成员的自动补全

  • cscope

    • 代码阅读

    • 代码交叉索引查找

    # Find this C symbol

    # Find this global definition

    # Find functions called by this function

    # Find functions calling this function

    # Find this text string

    # Find this egrep pattern

    # Find this file

    # Find files #including this file