Dear Axel,
Thanks for replying! Indeed the problem is that I don’t get either any compilation error or runtime error in ROOT 5.34.
After your comment I have tried to do the same with ROOT 6.08 and indeed I got something. I paste what I do respectively in the two versions of ROOT.
ROOT 5.34/30:
ROOT 5.34/30 (heads/v5-34-00-patches@v5-34-28-57-gec27989, Apr 10 2017, 18:18:00 on macosx64)
CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
WELCOME to ALICE
root [0] .L TSmartTree.h++
Info in <TMacOSXSystem::ACLiC>: creating shared library /Users/Gabriele/alice_sw/alice-MTR-utils/./TSmartTree_h.so
root [1] .L TBufferedVector.h++
Info in <TMacOSXSystem::ACLiC>: creating shared library /Users/Gabriele/alice_sw/alice-MTR-utils/./TBufferedVector_h.so
root [2]
root [2]
root [2] TBufferedVector<TObject*> vect jet
Error: Symbol TBufferedVector is not defined in current scope (tmpfile):1:
Error: Symbol TObject is not defined in current scope (tmpfile):1:
Error: G__getvariable: expression (tmpfile):1:
Error: Symbol vect is not defined in current scope (tmpfile):1:
(const int)0
*** Interpreter error recovered ***
root [3]
ROOT 6.08/02:
------------------------------------------------------------
| Welcome to ROOT 6.08/02 http://root.cern.ch |
| (c) 1995-2016, The ROOT Team |
| Built for macosx64 |
| From tag v6-08-02, 2 December 2016 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------
WELCOME to ALICE
root [0] .L TSmartTree.h++
Info in <TMacOSXSystem::ACLiC>: creating shared library /Users/Gabriele/alice_sw/alice-MTR-utils/./TSmartTree_h.so
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TSmartTree_linkdef.h, output: ${ALICE_ROOT}/include/TSmartTree_linkdef.h
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TSmartTree_linkdef.h, output: ${ALICE_PHYSICS}/include/TSmartTree_linkdef.h
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TSmartTree_linkdef.hh, output: ${ALICE_ROOT}/include/TSmartTree_linkdef.hh
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TSmartTree_linkdef.hh, output: ${ALICE_PHYSICS}/include/TSmartTree_linkdef.hh
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TSmartTree_linkdef.hpp, output: ${ALICE_ROOT}/include/TSmartTree_linkdef.hpp
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TSmartTree_linkdef.hpp, output: ${ALICE_PHYSICS}/include/TSmartTree_linkdef.hpp
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TSmartTree_linkdef.hxx, output: ${ALICE_ROOT}/include/TSmartTree_linkdef.hxx
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TSmartTree_linkdef.hxx, output: ${ALICE_PHYSICS}/include/TSmartTree_linkdef.hxx
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TSmartTree_linkdef.hPP, output: ${ALICE_ROOT}/include/TSmartTree_linkdef.hPP
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TSmartTree_linkdef.hPP, output: ${ALICE_PHYSICS}/include/TSmartTree_linkdef.hPP
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TSmartTree_linkdef.hXX, output: ${ALICE_ROOT}/include/TSmartTree_linkdef.hXX
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TSmartTree_linkdef.hXX, output: ${ALICE_PHYSICS}/include/TSmartTree_linkdef.hXX
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TSmartTree.hh, output: ${ALICE_ROOT}/include/TSmartTree.hh
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TSmartTree.hh, output: ${ALICE_PHYSICS}/include/TSmartTree.hh
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TSmartTree.hpp, output: ${ALICE_ROOT}/include/TSmartTree.hpp
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TSmartTree.hpp, output: ${ALICE_PHYSICS}/include/TSmartTree.hpp
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TSmartTree.hxx, output: ${ALICE_ROOT}/include/TSmartTree.hxx
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TSmartTree.hxx, output: ${ALICE_PHYSICS}/include/TSmartTree.hxx
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TSmartTree.hPP, output: ${ALICE_ROOT}/include/TSmartTree.hPP
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TSmartTree.hPP, output: ${ALICE_PHYSICS}/include/TSmartTree.hPP
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TSmartTree.hXX, output: ${ALICE_ROOT}/include/TSmartTree.hXX
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TSmartTree.hXX, output: ${ALICE_PHYSICS}/include/TSmartTree.hXX
root [1]
root [1] .L TBufferedVector.h++
Info in <TMacOSXSystem::ACLiC>: creating shared library /Users/Gabriele/alice_sw/alice-MTR-utils/./TBufferedVector_h.so
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TBufferedVector_linkdef.h, output: ${ALICE_ROOT}/include/TBufferedVector_linkdef.h
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TBufferedVector_linkdef.h, output: ${ALICE_PHYSICS}/include/TBufferedVector_linkdef.h
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TBufferedVector_linkdef.hh, output: ${ALICE_ROOT}/include/TBufferedVector_linkdef.hh
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TBufferedVector_linkdef.hh, output: ${ALICE_PHYSICS}/include/TBufferedVector_linkdef.hh
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TBufferedVector_linkdef.hpp, output: ${ALICE_ROOT}/include/TBufferedVector_linkdef.hpp
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TBufferedVector_linkdef.hpp, output: ${ALICE_PHYSICS}/include/TBufferedVector_linkdef.hpp
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TBufferedVector_linkdef.hxx, output: ${ALICE_ROOT}/include/TBufferedVector_linkdef.hxx
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TBufferedVector_linkdef.hxx, output: ${ALICE_PHYSICS}/include/TBufferedVector_linkdef.hxx
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TBufferedVector_linkdef.hPP, output: ${ALICE_ROOT}/include/TBufferedVector_linkdef.hPP
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TBufferedVector_linkdef.hPP, output: ${ALICE_PHYSICS}/include/TBufferedVector_linkdef.hPP
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TBufferedVector_linkdef.hXX, output: ${ALICE_ROOT}/include/TBufferedVector_linkdef.hXX
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TBufferedVector_linkdef.hXX, output: ${ALICE_PHYSICS}/include/TBufferedVector_linkdef.hXX
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TBufferedVector.hh, output: ${ALICE_ROOT}/include/TBufferedVector.hh
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TBufferedVector.hh, output: ${ALICE_PHYSICS}/include/TBufferedVector.hh
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TBufferedVector.hpp, output: ${ALICE_ROOT}/include/TBufferedVector.hpp
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TBufferedVector.hpp, output: ${ALICE_PHYSICS}/include/TBufferedVector.hpp
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TBufferedVector.hxx, output: ${ALICE_ROOT}/include/TBufferedVector.hxx
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TBufferedVector.hxx, output: ${ALICE_PHYSICS}/include/TBufferedVector.hxx
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TBufferedVector.hPP, output: ${ALICE_ROOT}/include/TBufferedVector.hPP
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TBufferedVector.hPP, output: ${ALICE_PHYSICS}/include/TBufferedVector.hPP
Error in <TSystem::ExpandFileName>: input: ${ALICE_ROOT}/include/TBufferedVector.hXX, output: ${ALICE_ROOT}/include/TBufferedVector.hXX
Error in <TSystem::ExpandFileName>: input: ${ALICE_PHYSICS}/include/TBufferedVector.hXX, output: ${ALICE_PHYSICS}/include/TBufferedVector.hXX
root [2] TBuffer
TBuffer
TBuffer3D
TBuffer3DCutTube
TBuffer3DSphere
TBuffer3DTube
TBuffer3DTubeSeg
TBuffer3DTypes
TBufferFile
TBufferJSON
TBufferSQL
TBufferSQL2
TBufferXML
root [2] TBufferedVector<TObject> vect
IncrementalExecutor::executeFunction: symbol '_ZN15TBufferedVectorI7TObjectE5ClassEv' unresolved while linking function '_GLOBAL__sub_I_cling_module_68'!
You are probably missing the definition of TBufferedVector<TObject>::Class()
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol '_ZN15TBufferedVectorI7TObjectE8StreamerER7TBuffer' unresolved while linking function '_GLOBAL__sub_I_cling_module_68'!
You are probably missing the definition of TBufferedVector<TObject>::Streamer(TBuffer&)
Maybe you need to load the corresponding shared library?
*** Break *** segmentation violation
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
[<unknown binary>]
Root >
Thank you for your help! 