[ROOT] problems with namespace in 3.02-02

From: Wouter Hulsbergen (hulsberg@SLAC.stanford.edu)
Date: Fri Mar 07 2003 - 19:16:43 MET


Dear developers,

The following piece of code compiled in 3.02-07, but not in 3.05-02
(Redhat 7.3, gcc-2.95.3)

#include <Rtypes.h>

namespace mynamespace {

  class Hoi
  {

  private:
    float x ;
    ClassDef(Hoi,1) ;
  } ;

  ClassImp(Hoi) ;
}

The compilor returns a syntax error in the line with the ClassImp:
   syntax error before '*'
   implicit declaration of function `int mynamespace::ROOT::GenerateInitInstance(...)'
   base operand of `->' is not a pointer

Without the namespace, the code compiles.

Best regards,
Wouter



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET