Still Problems with STL string and vector

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Tue Jun 16 1998 - 21:00:35 MEST


Hi,

I have a method in one of my classes that returns a string. While it seems
I can use string in the interpreter by following Masa's instructions
(include the folder STL in the cint/ directory...), when I try to
initialize a string declared in root by

root[0] #include <string>
root[0] string b = myclass.mymethod(....)

it segfaults. When I try to send a string as an argument to another member
function, it segfaults too.

I know that stl is very far from being fully usable in CINT but I thought
that at least vector and string where usable.

Does it have something to do with the fact that the include file
<string> used by rootcint and the one used by the compiler are not the
same ? (I use g++ on ALPHA, the behaviour is the same on MkLinux)

Cheers

Damir

=====================================================================
| Damir Buskulic                  | Universite de Savoie/LAPP       |
|                                 | Chemin de Bellevue, B.P. 110    |
| Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
| e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
=====================================================================
mailto:buskulic@lapp.in2p3.fr



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:33 MET