Re: Root configuration

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Fri, 11 Mar 2011 15:50:28 +0100


Hi Nicholas,

> Out of interest, why are the two incurrences necessary?

You are right, you can combine them into one. I just like to separate things for educational purposes :-) Often, compilation and linking are separate phases.

Separate root-config invocations also allow the positioning of ROOT's -L in front of -lTree etc, something I prefer.

Cheers, Axel.

Nicholas Devenish wrote on 03/11/2011 12:40 PM:
> On Thu, Mar 10, 2011 at 3:11 PM, Axel Naumann <Axel.Naumann_at_cern.ch> wrote:

>>> g++ -O2 -ansi -W -Wall -Wshadow -I../include
>>>         `root-config --cflags` \
>>> SaRootAna.cc main_gmgm_root.cc -o ../bin/main_gmgm_root.exe \
>>>         -L../lib/archive -lpythia8 \
>>>         -L/hepusers/asaddiq/Std_Pythia/lhapdf/lhapdf-work/lib -lLHAPDF \
>>>         `root-config --libs` \
>>>         -lgfortran -lgfortranbegin
>>
>> Note the two (!) occurrences of root-config.

>
> Out of interest, why are the two incurrences necessary?
>
Received on Fri Mar 11 2011 - 15:50:32 CET

This archive was generated by hypermail 2.2.0 : Fri Mar 11 2011 - 17:50:01 CET