Re: Strange behavior for class definition in Cint

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Tue, 2 Jun 2009 10:15:02 +0200


You are hitting a CINT problem with ostringstream In your file scope.C, add the 2 includes below and compile with ACLIC #include <iostream>
#include <sstream>

.L scope.C+
main1()
main2()

Rene Brun

Marcelo Zimbres wrote:
> Hi roottalk,
>
> The following macro has a strange behavior for the function main2()
> even though it is almost the same as main1(), when run the command:
>
> root[] .L scope.C
> root[] main2()
> root[] main2()
> root[] .q
> $ root.exe
> root[] .L scope.C
> root[] main2()
> root[] main2()
>
> or
>
> root[] .L scope.C
> root[] main1()
> root[] main2()
>
> I get the message: "***Break*** segmentation violation". The problem
> does not arises when I do the same thing using only main1(). I could
> not find any error in my code. Perhaps I missed some cint rules or
> there is a cint scoping problem running here.
>
> Best regards, Marcelo.
>
> I am using root version 5.22 on ubuntu.
Received on Tue Jun 02 2009 - 10:15:41 CEST

This archive was generated by hypermail 2.2.0 : Tue Jun 02 2009 - 11:50:02 CEST