RE: compling and linking of symlinked macro

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Sun, 25 Mar 2007 04:50:18 -0500


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 Sun Mar 25 2007 - 11:50:35 CEST

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