As indicated in the documentation of this example, this tutorial cannot
be executed by CINT
// // to run the example, do: // .x tree2a.C+ to execute with native compiler // // Note that this example cannot be run under CINT (ie .x tree2a.c) // because an interpreted class cannot derive from a compiled class.
You may also have to add the 2 following missing includes
#include "TROOT.h"
#include "TMath.h"
These two includes are in version 5.19
Rene Brun
Tim Head wrote:
> Hello,
>
> when executing the tree2a example root segfaults. Am I doing something wrong?
>
> Steps to reproduce:
>
> 1. start root, $ root -l
> 2. execute the example, root [0] .x
> /opt/root/root5.18.00/root/tutorials/tree/tree2a.C
> 3. for output see attachment
>
> Versions and system information:
>
> ROOT 5.18/00 (trunk_at_21744, Feb 08 2008, 10:22:00 on linux)
> CINT/ROOT C/C++ Interpreter version 5.16.29, Jan 08, 2008
> Linux HOSTNAME 2.6.9-67.0.7.EL #1 Fri Mar 14 08:22:07 CST 2008 i686
> athlon i386 GNU/Linux
> gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-8)
>
>
> I can reproduce this on a different system, versions:
>
> ROOT 5.18/00d (branches/v5-18-00-patches_at_24036, Jun 07 2008, 10:23:00 on linux)
> CINT/ROOT C/C++ Interpreter version 5.16.29, Jan 08, 2008
> Linux HOSTNAME 2.6.22-suspend2-r2-lvm #4 Sat Jun 7 19:44:26 BST 2008
> i686 Intel(R) Pentium(R) M processor 1.73GHz GenuineIntel GNU/Linux
> gcc (GCC) 4.1.2 (Gentoo 4.1.2 p1.1)
>
>
> cheers,
> tim
>
>
Received on Tue Jun 17 2008 - 14:15:19 CEST
This archive was generated by hypermail 2.2.0 : Wed Jun 18 2008 - 11:50:01 CEST