Re: rootcint,...

From: stefan kluth (skluth@mh1.lbl.gov)
Date: Wed Sep 23 1998 - 18:43:34 MEST


>Dear all,..

>I do have a problem, but cant really figure out why,.. I have the
>following .H
>file, that should be used to build up a dictionary,.. but just produces
>errors. Does anybody know why and if there is a workaround?

Hi Selim,

you are using STL, this does not work currently with root, because cint
cannot parse the rather involved STL .h files. Remember that the STL .h
files contain all the code, not just some declarations. 

It is possible to use some part of STL with Masas special STL headers, to
be found in the "stl" subdirectory of the "cint" package. You have to
download and unpack cint directly to get this. 

I am not sure that it is possible to build a precompiled shared lib of
some instantiated STL classes (e.g. vector<float>) from the cint/stl
headers, I tried the other day but did not succeed. 

It might be possible for you to replace the STL container you are using by
something that is available in root. It looks like you are using the
set<a,b> to do some sort of mapping, I believe there are classes in root
to do this, but I can't give you specific advise since I haven't used them
myself yet. 

cheers, Stefan

---Stefan Kluth---------------Lynen Fellow----------------|\--|\-------
-  LBNL, MS 50A 2160       -  phone:  +1 510 495 2376  -  |/  |/      -
-  1 Cyclotron Rd.         -  fax:    +1 510 495 2957  -  |\/\|\/\|'  -
---Berkeley, CA94720, USA-----e-mail: SKluth@lbl.gov------|/\/|/\/|----



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