- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 Linux进程间通信学习(20200128)
无名管道 无名管道怎么用呢?和操作文件差不多。 #include <stdlib.h> #include <string.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include &...
2020-01-28 23:33:24
88
原创 Linux中的共享库so学习(20200128)
SO文件的编译的方法 -so文件中不需要有main函数,即使有也不会被执行 -编译的时候gcc需要加选项-FPIC,这可以使gcc产生与位置无关的代码。 -链接的时候gcc使用-shared选项,指示生成一个共享库文件。 -共享库文件的要以lib开头,扩展名为so int max(int a, int b) { if(a > b) return a; else re...
2020-01-28 21:55:49
226
转载 Linux系统编程1————gcc-gdb-make编译笔记
gcc编译的三个过程 1.预编译 2.编译 3.连接 预编译 $ gcc -o hello.o-E hello.c 预编译做了什么 编译 $gcc -o hello.c -c hello.o 链接 make使用和编译 makefile是一个文本形式的脚本文件,其中 https://www.linuxidc.com/Linux/2014-11/10976...
2020-01-17 23:30:57
108
原创 平时日记
display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; 用于隐藏多余的文字
2015-05-04 17:50:18
220
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人