源码编译
makesifriend
聚沙成塔,积少成多
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
通过pkg-config添加libs和include
首先介绍命令行编译C++项目的方法,指出其问题所在。 g++的生成可执行文件语法: g++ -o test test.c -I/home/include -pthread -L/usr/local/lib -llog4cpp 其中, 1,-I后表示要搜索的头文件的路径,系统默认的搜索路径包括/usr/include、/usr/local/include。添加了/home/include后,...原创 2018-12-04 21:53:18 · 2834 阅读 · 0 评论 -
Linux制作动态库
参考文章: https://www.cnblogs.com/jiqingwu/p/linux_dynamic_lib_create.html 步骤: 1,编写源文件 2,编写接口文件 3,生成动态库 4,生成可执行文件 5,添加可以执行文件运行库查找路径 一、编写源文件 相当于函数定义 int max(int n1, int n2, int n3) { int max...原创 2018-12-08 14:21:42 · 1240 阅读 · 0 评论
分享