01 2013 档案
Samba 访问远程 Ubuntu 服务器目录
摘要:服务器使用的是 Ubuntu 12.04 LTS如果能远程桌面的话,就能更快的看到配置效果了,所以先岔开一截推荐一篇远程桌面的文章:http://www.cnblogs.com/xdzone/archive/2011/03/10/1979644.html我最受用的一行是从 Windows 远程桌面 ... 阅读全文
posted @ 2013-01-11 15:59 turtle_fly 阅读(1993) 评论(0) 推荐(0)
初识 bash/dash
摘要:bash/dash 是什么? shell 命令的解释器,BASH 是 Bourne-Again SHell 的缩写。 dash 比 bash 更轻,更快。但 bash 却更常用 如果一些命令、脚本等总不能正常执行,有可能是 dash 的原因 比如编译 Android 源代码的时候,如果使用 dash,则有可能编译出错,或者编译的系统不能启动当前使用的解释器 每一条 shell 命令都被某个解释器解释执行,那么系统当前使用的是哪个解释器? Ubuntu 默认的 shell 是 BASH,也可以自行查看:$ ls -al /bin/sh 举例: 表示 /bin/sh 软链接到当前目... 阅读全文
posted @ 2013-01-11 15:08 turtle_fly 阅读(1117) 评论(0) 推荐(1)
[整理] gcov lcov 覆盖c/c++项目入门
摘要:写在前面这个过程几乎从0开始,在此之前,我几乎没有在 linux 下编译链接过项目、没有接触过 makefile、没有读过 man-db、只 gcov 过一个仅有几个C文件的项目现在,我用 gcov 完成了对 VIM 源码的覆盖,并通过 lcov 生成了非常易读的覆盖率报告中间碰到了许多疑难杂症,但是更多的是若干教程中叮嘱的“不要放弃”,所以我大概按照下面的节点完成了这个工具的入门:虚拟机安装Ubuntu,配置gcov和lcov环境 --> 编译链接单个C文件 --> 写一个多个C文件的项目,用 makefile 进行编译连接,完成覆盖 --> 覆盖优秀的开源软件,例如 VI 阅读全文
posted @ 2013-01-09 00:55 turtle_fly 阅读(21665) 评论(3) 推荐(6)
undefined reference to ‘_gcov_init’
摘要:问题背景1. gcov是与gcc和g++一起工作的一个覆盖率工具,一个简单的例子如下$ gcc -fprofile-arcs -ftest-coverage tmp.c$ a.out$ gcov tmp.c 90.00% of 10 source lines executed in file tmp.c Creating tmp.c.gcov.per: here2. 将编译和链接两个步骤分开,会提示错误信息undefined reference to ‘_gcov_init’$ gcc -c tmp.c -fprofile-arcs -ftest-coverage$ gcc tmp.o -.. 阅读全文
posted @ 2013-01-06 10:25 turtle_fly 阅读(6480) 评论(0) 推荐(1)
Makefile和TAB键 - missing separator
摘要:makefile:4: *** missing separator. Stop. 4 或者其他数字表示make停止的行数Unlike most other DOS Make programs which accept any whitespace character at the beginning of a command in a rule, GNU Make insists that every such line begins with a TAB. (Most other Unix Make programs also require TABs, and the Posix sta. 阅读全文
posted @ 2013-01-05 15:09 turtle_fly 阅读(1076) 评论(0) 推荐(0)
[转载] Makefile简单例子
摘要:转载自http://mrbook.org/tutorials/make/Makefilesby exampleCompiling your source code files can be tedious, specially when you want to include several source files and have to type the compiling command everytime you want to do it.Well, I have news for you... Your days of command line compiling are (mos 阅读全文
posted @ 2013-01-05 11:55 turtle_fly 阅读(221) 评论(0) 推荐(0)
[转载] VirtualBox常见问题及解答
摘要:1.为何用VirtualBox而不用VMWare【整理】虚拟机的选择,VMWare还是VirtualBox – 绝对推荐VirtualBox2.到哪里下载Virtualbox【crifan推荐】虚拟机软件VirtualBox中有下载地址,和告诉你哪里可以找到最新版的VirtualBox。3.如何安装Virtualbox软件【教程】如何安装VirtualBox其中唯一需要注意的是:VirtualBox的安装路径中,不要包含中文,否则后续安装虚拟机时会出错。4.为何没有中文版的Virtualbox?简答:Virtualbox本来就支持多种语言。只不过,安装完毕时,默认选择的是英文版。可以自己去设置 阅读全文
posted @ 2013-01-04 11:11 turtle_fly 阅读(2046) 评论(0) 推荐(0)