• 2024-12-02dlopen 加载一个共享so库资源
    一.先生成一个共享so库文件//example.c#include<stdio.h>voidhello(){printf("Hellofromthesharedlibrary!\n");}voidtest(inta){printf("Testfromthesharedlibrary!parameteris%d\n",a);}用命令生成so库文件#编译共享库:gcc-sh