C++动态加载动态库

#include 
#include 
#include 
#include 
using namespace std;
int main()
{
    int a = 0;
    
    void *handle = dlopen("./libadd_c.so", RTLD_LAZY);
    
    if(!handle)
    {
        printf("open lib error\n");
        cout<

你可能感兴趣的:(C++动态加载动态库)