摘要: 源配置: https://www.cnblogs.com/zhangpengshou/p/3591387.html 代理设置: https://blog.csdn.net/zhengxinjian_2009/article/details/80819120 阅读全文
posted @ 2018-09-29 15:35 suphgmhh 阅读(375) 评论(0) 推荐(0) 编辑
摘要: Tools Version: gcc version 4.8.5 20150623 (Red Hat 4.8.5 28) (GCC) GNU Make 3.82 PROBLEM: 1 gcc: error: elf_i386: No such file or directory OBJCOPY ar 阅读全文
posted @ 2018-09-01 22:20 suphgmhh 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 学习系统/usr/include/sys/queue.h文件时,遇到如下强制类型转换: 结构体成员指针,强制类型可以转换为相应结构体类型,变为指向相应结构体变量的指针。 以TAILQ_LAST为例,做如下分析: 1、(head)->tqh_last 2、(struct headname *) ((h 阅读全文
posted @ 2017-12-26 15:59 suphgmhh 阅读(2842) 评论(0) 推荐(0) 编辑
摘要: 1、目录的权限:r表示可不可以显示目录。w表示能否对目录下档案进行新建、删除、重命名等操作。x表示能否进入该目录,即将该目录变为当前的工作目录。2、linux档案没有所谓的扩展名,linux档案的扩展名只起提示作用(用以表示档案的内容等信息)。3、linux下档案能否被执行与档案的扩展名无关,只要档 阅读全文
posted @ 2017-11-07 10:08 suphgmhh 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 编译命令:gcc -static -o test test.c 出错信息:/usr/bin/ld: cannot find -lccollect2: error: ld returned 1 exit status 原因&解决方法:静态链接需要静态库,系统没有安装静态库导致报错。yum instal 阅读全文
posted @ 2017-11-07 10:05 suphgmhh 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 安装及配置 步骤一:设置Cscope: 一、下载 二、安装 三、建立数据库 首先在目录下建立cscope索引文件 find `$PWD` -name '*.c' -o -name '*.h'> cscope.files cscope -Rbkq 这个命令会生成三个文件:cscope.out, csc 阅读全文
posted @ 2017-11-06 23:25 suphgmhh 阅读(2135) 评论(0) 推荐(0) 编辑
摘要: 1、设置在Linux 中设置共享文件夹。2、挂载mount -t vboxsf 主机上的共享文件夹 Linux下挂在的位置 例如:设置文件夹 share mkdir /mnt/share挂载 mount -t vboxsf share /mnt/share 阅读全文
posted @ 2017-11-06 23:22 suphgmhh 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 具体例子如下: 执行结果如下: 阅读全文
posted @ 2017-10-27 17:53 suphgmhh 阅读(802) 评论(0) 推荐(0) 编辑