To keep track. Here is where I am.
The the following with 6.02:
void unnamed()
{
TCanvas *c1 = new TCanvas("c1", "c1",0,0,400,400);
Double_t fx1009[6] = { 0.2715554, 0.295, 0.3183333, 0.3416667, 0.365, 0.3883333};
Double_t fy1009[6] = { 6.105087, 5.692255, 5.619629, 5.3808, 5.441179, 5.381391};
Double_t fex1009[6] = { 0.01166667, 0.01166667, 0.01166667, 0.01166667, 0.01166667, 0.01166667};
Double_t fey1009[6] = { 0.3546846, 0.1337318, 0.09532397, 0.07191573, 0.09626983, 0.1180724};
TGraphErrors *gre = new TGraphErrors(6,fx1009,fy1009,fex1009,fey1009);
TF1 *PrevFitTMP1010 = new TF1("PrevFitTMP","pol1",0.246,0.414);
gre->GetListOfFunctions()->Add(PrevFitTMP1010);
gre->Draw("AP");
c1->SaveAs("unnamed.root");
}
It generated “unnamed.root”
with the ROOT master do:
$ root unnamed.root
----------------------------------------------------------------
| Welcome to ROOT 6.05/01 http://root.cern.ch |
| (c) 1995-2014, The ROOT Team |
| Built for macosx64 |
| From heads/master@v6-05-01-300-g0aefc8d, Jul 07 2015, 14:32:14 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
----------------------------------------------------------------
root [0]
Attaching file unnamed.root as _file0...
(class TFile *) 0x7f8239e544c0
root [1] c1->Draw()
You get:
Error in <TClingCallFunc::make_wrapper>: Failed to compile
==== SOURCE BEGIN ====
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-security"
__attribute__((used)) extern "C" void __cf_0(void* obj, int nargs, void** args, void* ret)
{
if (ret) {
new (ret) (double) (TFormula____id9545039756528417102(*(double**)args[0], *(double**)args[1]));
return;
}
else {
TFormula____id9545039756528417102(*(double**)args[0], *(double**)args[1]);
return;
}
}
#pragma clang diagnostic pop
==== SOURCE END ====
*** Break *** segmentation violation