PDA

View Full Version : Late binding on Linux?


anthonyfloyd
11-06-2003, 09:50 PM
Hi all,

What I would like to accomplish is the following (at runtime):

- Search a directory structure for shared libraries
- For each shared library encountered, create a pointer (map a function name, whatever) to a standard routine in it (ie each shared library has a subroutine/function with a standard name 'foo')
- The number and names of the shared libraries cannot be known in advance, but they will all be F90/F95 compiled shared libraries (.so)

Now, I saw the late binding example for Windows in the FAQ section of the forum, but I want to do this in linux (well, I'd like to do it on all platforms, independent of OS).

Any pointers or suggestions? Am I hoping to do the impossible?

TIA,
Anthony.