Re: [ROOT] How to specify the compiler

From: Peter Elmer (Peter.Elmer@cern.ch)
Date: Fri Aug 30 2002 - 10:11:27 MEST


  Hi Ed,

On Thu, Aug 29, 2002 at 05:14:11PM -0700, Edward Chen wrote:
> Hi - if I have a different compiler in a different directory, is there a
> way to tell ROOT to use that compiler?  Thanks.

  It appears that the shell commmands for building a library are specified via 
TSystem::SetMakeSharedLib and TSystem::SetMakeExe(..), you can look at the 
current settings with the related GetXXX, i.e.  gSystem->GetMakeSharedLib() , 
etc. See base/src/TSystem.cxx.

  In my personal installation it appears by default to use "g++" (with no 
absolute path) so in such a case you can probably just put your alternate 
compiler in your path before the one you would normally use. You'll find, 
however, that the version used at SLAC by BaBar (for example) is 
using "g++-2.95.3" to be consistent with the compiler used for the rest of 
the software. There are however undoubtedly issues related to mixing compiler 
versions so you may have to be more specific about what you want to do.

                                   Pete

-------------------------------------------------------------------------
Peter Elmer     E-mail: Peter.Elmer@cern.ch      Phone: +41 (22) 767-4644
Address: CERN Division PPE, Bat. 32 2C-14, CH-1211 Geneva 23, Switzerland
-------------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:06 MET