Hi Alexis, Replace: #define DTOR (TMath::Pi())/180. #define RTOD 180./(TMath::Pi()) by const Double_t DTOR = (TMath::Pi())/180.; const Double_t RTOD = 180./(TMath::Pi()); Rene Brun On Tue, 21 May 2002, Mignon Alexis wrote: > Hi, > > I have a problem using rootcint with the following macro definition : > #include "TMath.h" > > #define DTOR (TMath::Pi())/180. > #define RTOD 180./(TMath::Pi()) > > which gives the message : > > Error: operator '/' divided by zero FILE:kvposition.h LINE:24 > > However , this poses no problem with g++ compiler. > > Have I made a trivial mistake or is this a bug ? > > Thanks in advance > > Alexis Mignon > > -- > Alexis Mignon > GANIL > Bd Henri Becqurel > 14076 CAEN Cedex 5 > France > tel: +(33) (0)231454680 > e-mail : mignon@ganil.fr >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:53 MET