Hi I am a newbie in root, and first time to analyses data in root. So in compillation of the code I got this error, which I search in forum and couldnt find the exact match.
/home/ozge/SEASTAR/exp/users/offlineuser/./macros/MakeBigRIPSTree_C_ACLiC_dict.cxx: In function ‘int G__MakeBigRIPSTree_C_ACLiC_dict__0_3919(G__value*, const char*, G__param*, int)’:
/home/ozge/SEASTAR/exp/users/offlineuser/./macros/MakeBigRIPSTree_C_ACLiC_dict.cxx:95:52: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
MakeBigRIPSTree((char*) G__int(libp->para[0]));
^
g++: error: /home/ozge/SEASTAR/exp/users/offlineuser/./macros/MakeBigRIPSTree_C_ACLiC_dict.o: No such file or directory
Error in : Compilation failed!
I understand that it couldnt find the ACLiC, but I dont know how to correct it. And I also post the code so maybe the problem is in the code
Thanks for advance
Özge MakeBigRIPSTree.hh (7.45 KB) MakeBigRIPSTree.C (8.05 KB)
Hi sorry to forget the write versions.
I use root version5.34.34 and I am in ubuntu 14.04 LTS, and gcc4.8
and for dependencies, should I attach all include .hh files like this ones ?
“TArtStoreManager.hh” #include “TArtEventStore.hh” #include “TArtBigRIPSParameters.hh” #include "TArtDALIParameters.hh
edit I make
gDebug =7
.L MakeBigRipsTree.C+
and I got this answer
first,
Hi Danilo , I dont understant what you say " Can you make your example stand alone?" what should i do to make it alone ?
second,
Hi Pepe le pew, I tried that one is not working still getting the same error.
Özge
the rest lib files are this ones. TArtStoreman… is main one others are connected to that one
and gives the same error I also add full replyof the error message as error_Maketry
/home/ozge/SEASTAR/exp/users/offlineuser/./macros/Maketry_C_ACLiC_dict.cxx: In function ‘int G__Maketry_C_ACLiC_dict__0_3225(G__value*, const char*, G__param*, int)’:
/home/ozge/SEASTAR/exp/users/offlineuser/./macros/Maketry_C_ACLiC_dict.cxx:95:44: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
Maketry((char*) G__int(libp->para[0]));
^
g++: error: /home/ozge/SEASTAR/exp/users/offlineuser/./macros/Maketry_C_ACLiC_dict.o: No such file or directory
Error in : Compilation failed! error_Maketry.txt (14.7 KB) TArtStoreManager.hh (850 Bytes) TArtCore.hh (711 Bytes) TArtRawDataObject.hh (1.59 KB)
Hi it gives that error because its my version of small code , Actually we try this macros the big one in the first msg it works in other computers, so probably i have same compilation error rather than codding. since error starts with g++ . is there any method to understand, incompatibility of g++ with root ? should i upgrade g++ or anything else ?
ok I did what u said (remove fout and change char* to const char*) and this is the part of error message :
/home/ozge/SEASTAR/exp/users/offlineuser/./macros/Maketry_C_ACLiC_dict.o: In function Maketry(char const*, char const*)': Maketry_C_ACLiC_dict.cxx:(.text+0x47): undefined reference toTArtStoreManager::Instance()’
/home/ozge/SEASTAR/exp/users/offlineuser/./macros/Maketry_C_ACLiC_dict.o: In function _GLOBAL__sub_I_Maketry_C_ACLiC_dict.cxx': Maketry_C_ACLiC_dict.cxx:(.text.startup+0x3e): undefined reference toROOTDict::GenerateInitInstance(TArtRawEventObject const*)'
collect2: error: ld returned 1 exit status
Error in : Compilation failed!
okey but I try the basic test code in the root file that I think everybody has the same ones, in root/test/dt_DrawTest.C and this also gives the same error like that
Info in TUnixSystem::ACLiC: creating shared library /home/ozge/SEASTAR/root/test/./dt_DrawTest_C.so
In file included from /home/ozge/SEASTAR/root/test/dt_DrawTest_C_ACLiC_dict.h:34:0,
from /home/ozge/SEASTAR/root/test/dt_DrawTest_C_ACLiC_dict.cxx:17:
/home/ozge/SEASTAR/root/test/./dt_DrawTest.C: In function ‘void DrawSkippable(TTree*, const char*, const char*, Bool_t)’:
/home/ozge/SEASTAR/root/test/./dt_DrawTest.C:19:15: error: invalid use of incomplete type ‘class TH1’
if (h) h->SetTitle(Form(“histo made from T->Draw(”%s")",what));
^
In file included from /home/ozge/SEASTAR/root/include/TTree.h:66:0,
from /home/ozge/SEASTAR/root/test/./dt_DrawTest.C:1,
from /home/ozge/SEASTAR/root/test/dt_DrawTest_C_ACLiC_dict.h:34,
from /home/ozge/SEASTAR/root/test/dt_DrawTest_C_ACLiC_dict.cxx:17:
/home/ozge/SEASTAR/root/include/TVirtualTreePlayer.h:30:7: error: forward declaration of ‘class TH1’
class TH1;
^
In file included from /home/ozge/SEASTAR/root/test/dt_DrawTest_C_ACLiC_dict.h:34:0,
from /home/ozge/SEASTAR/root/test/dt_DrawTest_C_ACLiC_dict.cxx:17:
/home/ozge/SEASTAR/root/test/./dt_DrawTest.C: In function ‘void DrawSkippable(TTree*, const char*, const char*, const char*, Bool_t)’:
/home/ozge/SEASTAR/root/test/./dt_DrawTest.C:34:15: error: invalid use of incomplete type ‘class TH1’
if (h) h->SetTitle(Form(“histo made from T->Draw(”%s","%s")",what,cond));
^
In file included from /home/ozge/SEASTAR/root/include/TTree.h:66:0,
from /home/ozge/SEASTAR/root/test/./dt_DrawTest.C:1,
from /home/ozge/SEASTAR/root/test/dt_DrawTest_C_ACLiC_dict.h:34,
from /home/ozge/SEASTAR/root/test/dt_DrawTest_C_ACLiC_dict.cxx:17:
/home/ozge/SEASTAR/root/include/TVirtualTreePlayer.h:30:7: error: forward declaration of ‘class TH1’
class TH1;
^
g++: error: /home/ozge/SEASTAR/root/test/dt_DrawTest_C_ACLiC_dict.o: No such file or directory
Error in : Compilation failed!
or more basic one dt_build.C
Info in TUnixSystem::ACLiC: creating shared library /home/ozge/SEASTAR/root/test/./dt_build_C.so
In file included from /home/ozge/SEASTAR/root/test/dt_build_C_ACLiC_dict.h:34:0,
from /home/ozge/SEASTAR/root/test/dt_build_C_ACLiC_dict.cxx:17:
/home/ozge/SEASTAR/root/test/./dt_build.C:1:1: error: expected unqualified-id before ‘{’ token
{
^
/home/ozge/SEASTAR/root/test/dt_build_C_ACLiC_dict.cxx: In function ‘int G__dt_build_C_ACLiC_dict__0_2180(G__value*, const char*, G__param*, int)’:
/home/ozge/SEASTAR/root/test/dt_build_C_ACLiC_dict.cxx:82:38: error: ‘gSystem’ was not declared in this scope
G__letint(result7, 105, (long) gSystem->Exit());
^
g++: error: /home/ozge/SEASTAR/root/test/dt_build_C_ACLiC_dict.o: No such file or directory
Error in : Compilation failed!
dt_DrawTest.C has not been tested with ACliC, to get to work, you need to add#include "TH1.h"For testing ACLiC, I recommend you talk a look at the file in $ROOTSYS/tutorials and $ROOTSYS/tutorials/hsimple.C in particular.
okey I try hsimple.C , obviously ACliC is working and dr_Draft is also working.
.L hsimple.C+
Warning in : /home/hj/root/tutorials is not writable!
Warning in : Output will be written to /tmp/nucle
Info in TUnixSystem::ACLiC: creating shared library /tmp/nucle//home/hj/root/tutorials/./hsimple_C.so
but my problem is stable still, I try to reinstall root in other machine. Now I will try to load libraries again. t o update this is my last error msg
/home/nucle/SEASTAR/exp/users/clem/./macros/MakeBigRIPSTree_C_ACLiC_dict.o: In function MakeBigRIPSTree(int)': MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x2688): undefined reference toTArtStoreManager::Instance()'
MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x26a5): undefined reference to TArtEventStore::TArtEventStore()' MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x26de): undefined reference toTArtBigRIPSParameters::Instance(char const*, char const*)'
MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x26f0): undefined reference to TArtBigRIPSParameters::LoadParameter(char*)' MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x26ff): undefined reference toTArtBigRIPSParameters::LoadParameter(char*)'
MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x270e): undefined reference to TArtBigRIPSParameters::LoadParameter(char*)' MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x271d): undefined reference toTArtBigRIPSParameters::LoadParameter(char*)'
MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x2732): undefined reference to TArtBigRIPSParameters::SetFocusPosOffset(int, double)' MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x2747): undefined reference toTArtCalibPID::TArtCalibPID()'
MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x275c): undefined reference to TArtCalibPID::TArtCalibPID()' MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x2771): undefined reference toTArtRecoPID::TArtRecoPID()'
MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x2779): undefined reference to TArtBigRIPSParameters::PrintListOfPPACPara()' MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x27ee): undefined reference toTArtRecoPID::DefineNewRIPS(int, int, char*, char*)'
MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x2813): undefined reference to TArtRecoPID::DefineNewRIPS(int, int, char*, char*)' MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x2838): undefined reference toTArtRecoPID::DefineNewRIPS(int, int, char*, char*)'
MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x285d): undefined reference to TArtRecoPID::DefineNewRIPS(int, int, char*, char*)' MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x28d3): undefined reference toTArtRecoPID::DefineNewTOF(char*, char*, double, int)'
MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x28f9): undefined reference to TArtRecoPID::DefineNewTOF(char*, char*, double, int)' MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x2961): undefined reference toTArtRecoPID::DefineNewBeam(TArtRIPS*, TArtTOF*, char*)'
MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x2978): undefined reference to TArtRecoPID::DefineNewBeam(TArtRIPS*, TArtTOF*, char*)' MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x2994): undefined reference toTArtRecoPID::DefineNewBeam(TArtRIPS*, TArtRIPS*, TArtTOF*, char*)'
MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x29ab): undefined reference to TArtRecoPID::DefineNewBeam(TArtRIPS*, TArtTOF*, char*)' MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x29c5): undefined reference toTArtRecoPID::DefineNewBeam(TArtRIPS*, TArtTOF*, char*)‘
MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x29df): undefined reference to TArtRecoPID::DefineNewBeam(TArtRIPS*, TArtRIPS*, TArtTOF*, char*)' MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x2a1e): undefined reference tovtable for TArtEventInfo’
MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text+0x30dd): undefined reference to TArtEventStore::GetNextEvent()' /home/nucle/SEASTAR/exp/users/clem/./macros/MakeBigRIPSTree_C_ACLiC_dict.o: In function_GLOBAL__sub_I_MakeBigRIPSTree_C_ACLiC_dict.cxx’:
MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text.startup+0x3e): undefined reference to ROOT::GenerateInitInstance(TArtRawEventObject const*)' MakeBigRIPSTree_C_ACLiC_dict.cxx:(.text.startup+0x5f): undefined reference toROOT::GenerateInitInstance(TArtEventInfo const*)'
collect2: error: ld returned 1 exit status
Error in : Compilation failed!
In which library did you request/build the dictionary for TArtStoreManager? In which library did you include the object file containing the implementation of TArtBigRIPSParameters::LoadParameter(char*)?