Hello rooters !
I wrote a class TSimpleParticule :
//_________ TSimpleParticle.h _________________________________
class TSimpleParticle : public TObject {
...
ClassDef(TSimpleParticle,1)
};
//____________________________________
On of TSimpleParticle constructor use TVector3 objects, so I included
TVector3.h at the beginning of TSimpleParticle.h.
I use a Makefile inspired by $ROOTSYS/test/Makefile. During compilation of
TSimpleParticle.cpp on Red Hat 7.2 with g++ 2.96 and root 3.03.09, I get :
//__________________________________________
g++ -O -Wall -fPIC -D_REENTRANT
-I/home/masse/soft/root/v3.03.09.rh7.2/include -c -o TSimpleParticle.o
TSimpleParticle.cpp
In file included from
/home/masse/soft/root/v3.03.09.rh7.2/include/TVector3.h:17,
from TSimpleParticle.h:21,
from TSimpleParticle.cpp:14:
/home/masse/soft/root/v3.03.09.rh7.2/include/TMatrix.h:94: parse error
before `1.60217733e-19'
/home/masse/soft/root/v3.03.09.rh7.2/include/TMatrix.h:95: parse error
before `1.60217733e-19'
make: *** [TSimpleParticle.o] Erreur 1
//________________________________________________
I also tried to compile on Mac OS X.2.4, with g++ 3.1 20020420
(prerelease) and root 3.04.02. Here is the result (quiete similar !) :
//________________________________________________
g++ -O -pipe -Wall -I/cern/root/include -c -o TSimpleParticle.o
TSimpleParticle.cpp
In file included from /cern/root/include/TVector3.h:17,
from TSimpleParticle.h:21,
from TSimpleParticle.cpp:14:
/cern/root/include/TMatrix.h:96: parse error before numeric constant
/cern/root/include/TMatrix.h:97: parse error before numeric constant
make: *** [TSimpleParticle.o] Error 1
//________________________________________________
I didn't find anything like this in roottalk digest so I think I'm doing
something wrong, but what is it ?
Could you help me ?
Thanks a lot,
Julien
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Julien Bolmont | julien.bolmont@gamum2.in2p3.fr
Ingénieur diplômé, doctorant | Tél. bureau: +33 4 67 14 93 30
Groupe d'Astroparticules de Montpellier | Tél. domicile: +33 4 67 41 43 91
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET