例如:test.c文件内容如下
#include <stdio.h>
void test()
{
printf("this is a test\n");
}
gcc -fPIC -shared test.c -o libtest.so
例如:test.c文件内容如下
#include <stdio.h>
void test()
{
printf("this is a test\n");
}
gcc -fPIC -shared test.c -o libtest.so