-1
#include <iostream>
#include <dlfcn.h>
using namespace std;

bool LoadEESQuote()
{
    void* m_handle;
    m_handle = dlopen("libEESQuoteApi.so", RTLD_LAZY);
    return true;
}

int main(int argc, char *argv[])
{
    LoadEESQuote();
    return 0;
}

it is said

need -ldl to compile

, so I set:

project properties-Configuration Properties-NMake-Additional Options: -lrt -ldl

but I still get error. Please help me

barbsan
  • 3,418
  • 11
  • 21
  • 28
zzzlondon
  • 1
  • 1

1 Answers1

0

Thanks to n.m. VisualGDB Project Properties- Makefile settings -Additional linker inputs: -ldl and it is worked out

zzzlondon
  • 1
  • 1