From: ara.t.howard@... Date: 2006-05-26T23:24:15+09:00 Subject: Re: DL: Array of symbols in a dynamic lib On Fri, 26 May 2006, Benjohn Barnes wrote: > With DL, is there a way to ask for the symbols that exist within a module > that I've loaded? > > For instance, once I've done... > > module_handle = DL::dlopen('my_lib') > > Can I then ask module_handle for an array of symbols? I can't see a likely > looking method in there, and it seems like it'd be very nice to have that > kind of introspection available. > > Off topic, can someone give me a good entry point for OS X's tool chain for > looking inside dynamic libraries, and understanding the subject in general? > I really found myself struggling! The only really constructive thing I found > out last night was that on OS X, you need to ask cgg to make you: > -dynamiclib > > This let me try an example out (which worked, wooO!), but I've no idea where > these things are usually kept (somewhere in bundles?). Or how I can peek > about in one. > > Cheers, > Benjohn it's not exactly what you're asking, but try strings libname.so on the command line. another useful command is ldd libname.so also man ld.so hth. -a -- be kind whenever possible... it is always possible. - h.h. the 14th dali lama