Linux???????????????
???????????? ???????[ 2015/7/14 13:19:55 ] ??????????????
?????.?????????????
????1. ??????????????????????????????????????????????е????????????????????г?????????????????????????????????????????е??????????????????γ??????к???????????????????????????????????????????????????????γɡ?
????2. ??????????????б?????soname???? ????(realname)??????????linker name???????????????lib?????????????????????????“.so”???ɡ??????????????????????????????????????????????С?汾????????汾????ɡ?????????????????????????????????????????????
????3.?????????????????????????????????£?????????????????????????????????и??μ????????????????????ɡ?
??????.????????????
????1.??????????????????????????????t????
???????????????
????1>??test????????????????: main.c ??add.c??sub.c??tiger.h
????2> main.c????е??????
????#include<stdio.h>
????#include”tiger.h”
????int main(void)
????{
????printf(“sum =%d
”??add(5??3));
????printf(“sub= %d
”??sub(5??3));
????return 0;
????}
????3>.tiger.h????е??????
????#ifndef __TIGER__
????#define __TIGER__
????int add(int a??int b);
????int sub(int a??int b);
????#endif
????4>.add.c????е?????
????int add(int a?? int b)
????{
????return a +b;
????}
????5>.sub.c????е?????
????int sub(int a?? int b)
????{
????return a - b;
????}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11