Hi Wolgang, Which ROOT version are you using ? With the compiler, you should implement a correct function, eg //file rootest.C #include <vector.h> void rootest() { vector<int> A; //dosomething } root > .L rootest.C++ root > rootest(); Rene Brun Wolfgang Waltenberger wrote: > > Dear roottalk, > > I would like to use an stl vector in a .cc file; > say: > > <file rootest.cc> > #include <vector.h> > vector<int> A; > </file> > > If I load this in interpreter mode (.L rootest.cc), everything is fine. > In compiler mode (.L rootest.cc+) this thing won't compile, since it uses > its lib/prec_stl/vector library ... > Can this behavior be changed? Can I use STL vectors in compiler mode, > too? > > Ciao, Wolfgang.
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:43 MET