Re: [ROOT] compiling problems

From: Jiri Masik (masik@pc203b.fzu.cz)
Date: Mon Nov 05 2001 - 12:10:53 MET


Fons Rademakers <Fons.Rademakers@cern.ch> writes:

> Hi Thomas,
> 
>    check $ROOTSYS/cint/Module.mk for GCCVERS and make sure that with this
> compiler you get the number 3. This is downstream used to select the
> right libstrm.cxx to be compiled (actually gcc3strm.cxx will be used).
> 
> Cheers, Fons.
> 
> 
> 
> Thomas Eberl wrote:
> > 
> > Dear rooters,
> > 
> > I have a RedHat 7.1 system with the following compiler installed from
> > the official rpm-package:
> > [teberl@coeus ~> g++3 -v

Hi Fons,

please would a configure-like test for gcc3 be possible - for example
to parse output of 

int main(){
  int i=0;
#ifdef __GNUC__
  i = __GNUC__;
#endif
  printf("%d\n",i);
  return(0);
}
which should work for any compiler.

The test in cint/Module.mk has broken the flexibility to specify
compiler suite by variables in config/Makefile... I think it is quite
common to have more compilers installed under different names. One has
to change two files to select the compiler as it is now it
would be nice if it was governed by a single statement again.
cheers,
        Jiri



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:06 MET