Linux系统共享库编程

上传:liangke36228 浏览: 16 推荐: 0 文件:PDF 大小:45.67KB 上传时间:2021-01-16 11:25:59 版权申诉
一、说明 类似Windows系统中的动态链接库,Linux中也有相应的共享库用以支持代码的复用。Windows中为*.dll,而Linux中为*.so。下面详细介绍如何创建、使用Linux的共享库。 二、创建共享库 在mytestso.c文件中,代码如下: #include < stdio> #include < stdlib> int GetMax(int a, int b) { if (a >= b) return a; return b; } int GetInt(char* psztxt) { if (0
上传资源
用户评论