I am extremely new to Root, and even newer to Root 6, but have somehow managed to get an error almost instantaneously; the following code produces an error, but only on the second time I load the macro?
Code:
#include "TROOT.h"
#include <fstream>
#include <string>
#include <numeric>
#include <iterator>
#include <vector>
#include "TFile.h"
#include "TTree.h"
#include "TBranch.h"
#include "TSystem.h"
#include "TGraph.h"
using namespace std;
using namespace ROOT::Experimental;
//define global variables
int SCOUNT = 1;
vector<double> t1,v1,t2,v2;
vector<double> *vTime = new vector <double>();
vector<double> *vRes = new vector <double>();
void start(){
//create trees
TFile *output = new TFile("process.root","RECREATE");
TTree *f1 = new TTree("f1","Contents of first file");
f1->Branch("vTime1",&t1);
f1->Branch("vRes1",&v1);
TTree *f2 = new TTree("f2","Contents of second file");
f2->Branch("vTime2",&t2);
f2->Branch("vRes2",&v2);
output->GetObject("f1",f1);
output->GetObject("f2",f2);
//create data frame
ROOT::EnableImplicitMT();
TDataFrame d1("file1","process.root");
TFile::Open("process.root");
TDataFrame d2("file2",output);
}//(start)
Error:
IncrementalExecutor::executeFunction: symbol '_ZN9__gnu_cxxL27__exchange_and_add_dispatchEPii' unresolved while linking function '_GLOBAL__sub_I_cling_module_51'!
You are probably missing the definition of __gnu_cxx::__exchange_and_add_dispatch(int*, int)
Maybe you need to load the corresponding shared library?
Thanks in advance for your help,
Alistair
_ROOT Version: 6.12/06
_Platform: Scientific Linux 7.4
_Compiler: GCC 4.8.5