2021年7月26日
摘要: 1、编译动态链接库 gcc -shared -fPIC main.c -o libday.so 2、使用动态链接库 # gcc -o test test.c -L 动态库路径 动态库文件 gcc -o test test.c -L ./ libday.so 3、将动态链接库放置环境路径 cp -rf 阅读全文
posted @ 2021-07-26 17:54 裸睡的猪 阅读(371) 评论(0) 推荐(0) 编辑