Hi Ingo, Victor, and others, On Fri, 14 Apr 2000 12:23:58 -0400 Victor Perevoztchikov <perev@bnl.gov> wrote: > > Is there a way to 'look' at all symbols in a shared library? If > > not: somebody must have built that library and she could tell me > > what she has put in it... > > On UNIX it is: > nm -p libsome.so | grep MyClass On Linux you can do "nm -C <some_elf_library>" to 'demangle' the symbol names. On other Unix'es the "-C" flag my not be avaliable (it's GNU extension I believe), but then the filter "c++filt" is probably avaliable. In that case, you could do prompt% nm libMyLibrary.so | c++filt | grep MyClass | less (Marvel at the power of the Unix utilities - such a pipeline is invaluable). The GNU "binutils" package provide many such utility programs, so it's worth the effort to read the Info pages on that package to familiarise yourself with that software. Hope that helps, Christian ----------------------------------------------------------- Holm Christensen Phone: (+45) 35 35 96 91 Sankt Hansgade 23, 1. th. Office: (+45) 353 25 305 DK-2200 Copenhagen N Web: www.nbi.dk/~cholm Denmark Email: cholm@nbi.dk
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:23 MET