Re: ROOT not usable together with STL?

Jacek M. Holeczek (holeczek@clri6f.gsi.de)
Fri, 25 Apr 1997 12:01:16 +0200 (EET)


Hi,
> rootcint TestCint.cc -c -D__PTRDIFF_TYPE__ -I/usr/gnu/lib/g++-include
Have a look at what the cint originally did. It said :
>> Limitation: can not handle macro __PTRDIFF_TYPE__ longint Use +P or -p option
>> FILE:/usr/gnu/lib/g++-include/_G_config.h LINE:21
Note here the "longint". I'm pretty sure that the original source code
was "long int" ( see the SPACE in between ).
> ( ... )
> not generate correct Streamer code for list<int>. You will have to
> modify the generated Streamer by hand to correctly loop over the
> list<int> object. Using ROOT's TArrayI will work without problems.
I think that the problem is more general. Most of the people have some
already existing code ( sometimes C/C++, sometimes fortran ). I think that
there is a need to write a tutorial "How can I use/adapt my existing code
for root".
Jacek.