Shaw, Jason
2007-Sep-22 01:14 UTC
[Rd] How can I list unregistered routines from loaded DLLs?
Hi, I want to load DLLs that have been compiled in C or C++ (using dyn.load), and then get a list of all routines contained in that DLL. getRegisteredRoutines doesn't work, because the routines have not been registered. It's a catch-22 because I can't (so far as I can see) register the routines without knowing their names, and I can't (so far as I can see) get a list of their names unless they are registered. Is there a way around this, besides making guesses about the names and testing them with is.loaded()? Thanks in advance, Jason
Duncan Murdoch
2007-Sep-22 15:24 UTC
[Rd] How can I list unregistered routines from loaded DLLs?
Shaw, Jason wrote:> Hi, > > I want to load DLLs that have been compiled in C or C++ (using > dyn.load), and then get a list of all routines contained in that DLL. > getRegisteredRoutines doesn't work, because the routines have not been > registered. It's a catch-22 because I can't (so far as I can see) > register the routines without knowing their names, and I can't (so far > as I can see) get a list of their names unless they are registered. Is > there a way around this, besides making guesses about the names and > testing them with is.loaded()?You need tools external to R. pedump (in the Rtools collection) can do it on Windows; objdump is a similar utility on Unix platforms. Duncan Murdoch