I tested the following macro:
// test.C
#include
#include <TH1F.h>
void test()
{
std::vector<TH1F*> vh;
}
The results are as follows. The error occurs only from the 2nd execution.
$ root -l
root [0] .x test.C
root [1] .x test.C
IncrementalExecutor::executeFunction: symbol ‘_ZSt8_DestroyIPP4TH1FS1_EvT_S3_RSaIT0_E’ unresolved while linking [cling interface function]!
You are probably missing the definition of void std::_Destroy<TH1F**, TH1F*>(TH1F**, TH1F**, std::allocator<TH1F*>&)
Maybe you need to load the corresponding shared library?
root [2]
Is this a known issue? I am using ROOT 6.12.