The key "feature" here is that I want to write a piece of code in Linux that will read a .conf file when it starts up, and then "load" and "link to" several libraries, all of which will export the same interface. In Windows, what you do is get hold of the name of the DLL from somewhere (e.g. the registry), call LoadLibrary() on it, then call GetprocInstance() to get the address of the various entry points.
Libtool appears to be different -it just says "link to this file when you compile the project" - that's no good because I don't want the drivers to be fixed at compile time
any suggestions ?
Cheers Vasko Tomanov
"Vasko Tomanov" vtomanov@dotrtt.com writes:
The key "feature" here is that I want to write a piece of code in Linux that will read a .conf file when it starts up, and then "load" and "link to" several libraries, all of which will export the same interface. In Windows, what you do is get hold of the name of the DLL from somewhere (e.g. the registry), call LoadLibrary() on it, then call GetprocInstance() to get the address of the various entry points.
You want dlopen and dlysm.