第1章 Linux程序设计入门

  • 文本编辑器可以选择Vim和或者GNU Emacs
1 http://www.vim.org/
2 http://www.gnu.org/software/emacs/

 

  • 编译器GCC 
1 http://gcc.gnu.org/

 

  • shell程序搜索到目录路径储存在shell变量PATH中 
1 $ echo $PATH
2 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

 

  • 头文件(-I指定搜索路径)
1 /usr/include

 

  • 库文件(-L指定搜索路径,-l指定库文件)
1 /lib和/usr/lib

 

  • 总结:掌握以下命令
1 gcc - GNU project C and C++ compiler
2 ar - create, modify, and extract from archives
3 nm - list symbols from object files
4 ldd - print shared library dependencies
5 ldconfig - configure dynamic linker run-time bindings
6 man - an interface to the on-line reference manuals

 

posted @ 2012-07-08 12:50  kimiz  阅读(146)  评论(0)    收藏  举报