I went through the How to load a dynamic library on demand from a C++ function/Qt method
It seems if we have to load a shared library on run time . We always write code to resolve the function/symbols names in shared objects using
1) dlsym , if we load the shared library on run time using dlopen .Or
2) Other techniques as proposed in How to load a dynamic library on demand from a C++ function/Qt method
3) Since my shared library will have millions of symbols/functions for example my shared library has functions
fun1() , fun2 ..... fun1000000
is there any direct way where we do no need write any code to resolve the function/symbols names and just call the functions from shared library functions directly after loading the shared library.
The algorithm I am looking for
void loadSharedObject() {
//load the
// Call the function names directly
// no extra code for resolving the function /symbols names
// for example
fun1()
fun2()
}