c - How can I call a library function just from its name? -


i want able use char *function_name = "foo" call foo() c program. foo() routine in shared library. don't have access dlopen, etc, load step regular executable. there way resolve name , load shared library?

no. either use dlopen , dlsym, or make own array of function names , function pointers , way.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -