Many thanks Pasha,
I was not exactly that what I wanted. I refered to the case in which you
are running root interactively and you load from there the shared lib and
the macro with the function that is to be passed as an argument to the
shared lib.
In any case I found the way to do it. It is very nicely explained
(although a bit hidden) in
http://root.cern.ch/root/Cint.phtml?ref
where G__isinterpretedp2f() is described.
Thanks again and sorry for the inconveniences,
Carlos
On Thu, 25 Nov 1999, Pasha Murat (630)840-8237 FNAL (630)859-3463 home wrote:
> Carlos Lacasta wrote:
> > I would like to know how to pass a pointer of a function defined in a
> > macro and loaded with gROOT->LoadMacro to a function in a loaded shared
> > library and call it from there.
> >
>
> Hi Carlos: you can have in the code you compile into shared library
> statements like this:
>
> gInterpreter->ProcessLine("your_function()")
>
> Then "your_function" can be loaded in in the interpreted mode.
>
> best, Pasha
>
___________________________________________________________________
Carlos Lacasta
^^^^^^^^^^^^^^^
Inst. de Fisica Corpuscular (IFIC)
Nuevos Edificios Investigacion Paterna
Universitat de Valencia
Ap. de Correos 2085
46071 VALENCIA
Spain
Tel.: +34 96 3864500
Fax.: +36 96 3864583
Carlos.Lacasta@ific.uv.es
___________________________________________________________________
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET