Hi Troy,
To put
.include /my/include/dir
.L /my/lib/libshared.so
in your rootlogon.C you need to do:
gROOT->ProcessLine(".include /my/include/dir");
gROOT->ProcessLine(".L /my/lib/libshared.so");
You can also add info directly to ACLiC by using
gSystem->AddIncludePath(" -I/my/include/dir ");
gSystem->AddLinkedLibs(" /my/lib/libshared.so ");
Cheers,
Philippe
-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Troy D. Straszheim
Sent: Thursday, June 17, 2004 8:52 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] setting include and library paths using ACLiC
Hi Talk --
I'm wondering how to set library/include search paths? I am doing
development using ACLiC (root myfile.C++), and need to tell root every
time what the include directories are and to load other shared
libraries (e.g. run root, add to path with ".include /my/dir", load
libraries with ".L /path/to/my/shared/libsomething.so", then
".X myfile.C++").
What's the best way to do this? I have tried putting things like
.include /my/include/dir
.L /my/lib/libshared.so
in rootlogon.C, but this doesn't work....
Thanks,
Troy
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET