#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
Thanks to n.m. VisualGDB Project Properties- Makefile settings -Additional linker inputs: -ldl and it is worked out