Re: compling and linking of symlinked macro

From: Constantin Loizides <loizides_at_mit.edu>
Date: Wed, 28 Mar 2007 17:01:58 +0200


Hi Phillippe,

sorry for the noise, you are right, it works1 (I got confused betweens accounts and
an old ROOT head that was not updated.)

Constantin

Philippe Canal wrote:
> Hi Constantin,
>
> I fail to reproduce your problem. In the test I made,
> it still seems to work as you expect. Could you provide
> me with a tar file reproducing your issue? (and the
> ROOT version number and OS flavor).
>
> Thanks,
> Philippe.
>
> -----Original Message-----
> From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch]
> On Behalf Of Constantin Loizides
> Sent: Thursday, March 22, 2007 11:03 PM
> To: ROOT TALK
> Subject: [ROOT] compling and linking of symlinked macro
>
> Hi,
>
> has there been a change in the way, macros are compiled?
>
> One of my very much preferred ways has been to write a
> macro that contains several functions. In order
> to easily access those functions from the cmd line I
> would symlink the file name with the function name,
> ln -s filename.C functionname.C
>
> Then I could execute ala
> root.exe -b -q functionname.C+\(arg1,arg2,arg3\)
>
> It seems to me that now gSystem is clever(?) enough to
> resolve the symlink and produce "filename_C.so". However,
> ROOT then is not clever(?) enough to understand that
> it should first link filename_C.so and then look for the
> "functionname" function in that lib.
>
> The only way I could get my previous way of working to
> work is to really copy filename.C to functionname.C
> This is however really impractical.
>
> Any ideas what I can do?
>
> Thanks,
> Constantin
>

-- 
Tel: +1-617-8301823 (SkypeIn)
Skype: loizides
AOL: ConLoi / ICQ: 114824520
Received on Wed Mar 28 2007 - 17:03:19 CEST

This archive was generated by hypermail 2.2.0 : Wed Mar 28 2007 - 23:50:01 CEST