s-news
[Top] [All Lists]

Re: [S] printing entries in the global symbol table(s)

To: Vadim Ogranovich <vograno@arbitrade.com>
Subject: Re: [S] printing entries in the global symbol table(s)
From: Prof Brian D Ripley <ripley@stats.ox.ac.uk>
Date: Tue, 29 Feb 2000 07:07:32 +0000 (GMT)
Cc: "S-news (E-mail)" <S-news@wubios.wustl.edu>
In-reply-to: <AFD78192EC49D311BFAE00902798AB8F03C081@jupiter.sc.arbitrade.com>
Sender: owner-s-news@wubios.wustl.edu
On Mon, 28 Feb 2000, Vadim Ogranovich wrote:

> 
> Dear All, When I dynamically load an object file (compiled from C for
> example) how can I list the global names which are loaded with the file? Is
> it possible to list all names which one can call on a running S-Plus
> session?

Use nm on shared library you loaded.  For a more-or-less
platform-independent way use nm -pq or Splus NM, as in

Splus5 NM S.so | grep " T " | cut -f3 -d " " | grep -v "^_"

(You will get a few system routines too.)

> P.S. I use V5.1 on Sun

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>