Re: problems compiling brat 2.0.9

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Wed Jul 18 2001 - 05:46:26 EDT

  • Next message: Christian Holm Christensen: "Re: BROP-1-0-1 and something must be wrong here......."

    On Tue, 17 Jul 2001 16:32:48 -0500
    "Stephen J. Sanders" <ssanders@ku.edu> wrote
    concerning ": problems compiling brat 2.0.9":
    > Hi, I just checked out the latest and greatest.    Unfortunately, the 
    > make fails with
    
    ...
    
    > ../modules/abc/inc        -g -O1 -c BrRint.cxx
    > BrRint.cxx: In method `void BrRint::Print(const Option_t *) const':
    > BrRint.cxx:161: passing `const TRint' as `this' argument of `void 
    > TRint::PrintLo
    > go()' discards qualifiers
    > make[2]: *** [BrRint.o] Error 1
    > make[2]: Leaving directory `/home/sanders/brat/applications/bratroot'
    > make[1]: *** [all-recursive] Error 1
    > make[1]: Leaving directory `/home/sanders/brat/applications'
    > make: *** [all-recursive] Error 1
    > ==============================================================
    >
    > I am running g++ 2.95.3 on a PPC.     Any suggestions?
    
    The problem is, that TRint::PrintLogo isn't const (why it isn't is a
    bit of a mystery to me), but that message is sent from BrRint::Print
    which _is_ const.  That is not allowed by ANSI/ISO C++.  I thought I'd
    taken that out a long time ago, but either I didn't or something
    happend that overwrote my changes.  
    
    Anyway, the reason why you (and I on my own machine) are seeing this
    error and no-one else is, is that you are using a more ANSI/ISO
    standard compiliant compiler than most of us.  
    
    This should not make you downgrade the compiler.  Rather it should
    prompt everyone else to upgrade thier compiler.  I know that people my
    have BOFHs (Bastard Operator From Hell) and upgrading such things as
    the compiler (which probably means you have to upgrade your glibc on
    Linux as well) is not something they do lightly. 
    
    I will remove the violating statement and submit.  Doing it now
    ... done. 
    
    Yours, 
    
    Christian  -----------------------------------------------------------
    Holm Christensen                             Phone:  (+45) 35 35 96 91 
      Sankt Hansgade 23, 1. th.                  Office: (+45) 353  25 305 
      DK-2200 Copenhagen N                       Web:    www.nbi.dk/~cholm    
      Denmark                                    Email:       cholm@nbi.dk
    



    This archive was generated by hypermail 2b30 : Wed Jul 18 2001 - 05:46:57 EDT