1.编写C文件 #include <stdio.h> //定义一个函数将两个参数相加. int add(int a , int b) { return a+b; } 2. 编译dll文件 tcc -shared -rdynamic test