2019年11月20日

c回调函数

摘要: 1. 准备三个文件test.c, test.h, main.c 2. 编译生成so文件 3. 编译生成main 通过函数指针回调函数 test.h test.c main.c 编译test.so 编译main 执行测试 阅读全文

posted @ 2019-11-20 01:03 luckygxf 阅读(259) 评论(0) 推荐(0) 编辑

gcc生成so文件

摘要: 准备三个文件test.h, test.c, main.c test.h #include <stdio.h> void say_hello(); test.c #include "test.h" void say_hello(char *name){ printf("hello %s\n", nam 阅读全文

posted @ 2019-11-20 00:41 luckygxf 阅读(4060) 评论(0) 推荐(0) 编辑

导航