[GiNaC-list] GiNaC inside ROOT?

John Pye john.pye at student.unsw.edu.au
Tue Aug 23 14:29:22 CEST 2005


Hi all

Since ginsh is built on top of CINT, it seemed reasonable to hope that
GiNaC might able to be run from insite ROOT -- has anybody been able to
do this?
ROOT is here: http://root.cern.ch/

With the following simple test program,

> #include <iostream>
> #include <ginac/ginac.h>
>
> using namespace std;
> using namespace GiNaC;
>
> int main(){
>         symbol x("x");
>
>         ex y = pow(x+1,3);
>
>         ex dydx = y.diff(x);
>
>         cerr << dydx;
> }


I get an error message from ROOT

> Processing roottest.C...
> Limitation: Reference member not supported. Please use pointer
> FILE:/usr/include/ginac/print.h LINE:101


So maybe I can't use GiNaC inside ROOT? This is with GiNaC 1.3.2. Would
appreciate any suggestions.

How does gTybalt get around this?

Cheers
JP




More information about the GiNaC-list mailing list