Hi,
if I understand your setup well, you should simply call gROOT->ProcessLine(".L Macro1.C++") (note the two pluses at the end) which will force ROOT to recompile the macro. That way you get a library that compatible with each grid nodes' OS, because you build it on the grid nodes themselves.
Cheers, Axel.
Stephan Zimmer wrote on 10/23/2009 11:45 AM:
> Hi Rooters,
> @Philippe thanks for your latest reply and I've figured out some of the
> mistakes I made. However this email is kind of related to the previous
> one. As I've outlined I am using a C-macro which I load into ROOT using
> root -l main.C. Within main.C I request root to compile some external
> C-files and create the shared libraries. I do this using
> gROOT->ProcessLine(".L Macro1.C+") (see below). I want to make this
> analysis code cluster compatible. The local installation is a RedHat
> Enterprise 5 whereas most of the clusters have SL5. Thus I ran into
> problems regarding dynamic linking. One possible workaround I could
> think about is to compile those "macros" using gcc or even ROOT and load
> them afterwards as shared libs. But just doing "g++ Macro1.C
> 'root-config --cflags --glibs'" creates tons of error messages though
> according to CINT my code is okay... Any ideas?
> Thanks,
> Stephan
>
>
Received on Fri Oct 23 2009 - 12:00:14 CEST
This archive was generated by hypermail 2.2.0 : Fri Oct 23 2009 - 17:50:02 CEST