Hola rooterinos
I have already fixed this issue, after following advice in an old post by Le Pew, however it would be nice to know how to link properly, without this workaround.
My system is 14.04 ubuntu, I use the 5.34 root-system .deb available in the repositories. g++ 4.8.2
My code
g++ -o ted ted.cpp root-config --cflags --glibs
-lTree && ./ted
Warning in TClass::TClass: no dictionary for class TTree is available
Warning in TClass::TClass: no dictionary for class TBranch is available
Warning in TClass::TClass: no dictionary for class TLeafI is available
Warning in TClass::TClass: no dictionary for class TLeaf is available
Warning in TClass::TClass: no dictionary for class TLeafL is available
Warning in TClass::TClass: no dictionary for class TLeafS is available
Warning in TClass::TClass: no dictionary for class TLeafB is available
Warning in TClass::TClass: no dictionary for class TBranchRef is available
*** Break *** segmentation violation
My code when I include the line
TApplication *dummy=new TApplication(“dummy”,0,0);
… works fine!
Cheers!
Ben
ted.cpp (1.84 KB)