![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++ so linux
文章平均质量分 93
野狼位位
将自己在工作中遇到的问题进行详细的总结。
展开
-
makefile Cmake
1,clean:伪目标2,‘’$@‘’:这个变量表示目前规则中的所有的目标的集合。3,‘’$4,-c:指定读取的 目标文件 ;-B;认为所有的目标都需要重新更新 ;-l:指定make运行命令的负载; -o:b不重新生成的制定的http://blog.csdn.net/haoel/article/details/2886原创 2017-03-23 10:09:37 · 990 阅读 · 0 评论 -
VS 2015 linux makefile
1,makefile在其他的文章中有详细的流程,在VS中搭建linux,这个自己查找安装2,在Build Events中在Remote Pre_BuildEvent中添加cd $(RemoteRootDir)/$(ProjectName); make ver=release控制生成release版本的 so.原创 2017-08-04 11:33:53 · 1165 阅读 · 0 评论 -
将编写的C++文件在linux下编写so文件,添加依赖库so
1,需要的头文件和cpp 文件==========test.h===========#ifdef __cplusplus // 注意,这里是双下划线!!!extern "C"{#endifclass Test{ //有类写类,没有就不写了public:int hello(int i);};int helloT(int j);#ifdef...原创 2017-03-14 11:33:54 · 7560 阅读 · 0 评论