ROOT Version: 6.30/04
Platform: lxplus
Compiler: g++ 11.4.1
Hi all,
I run my root macro (see below) via root test.C
works as expected. When however running it again from the root prompt with .x test.C
, the following error is returned:
IncrementalExecutor::executeFunction: symbol '_ZSt7forwardIRKfEOT_RNSt16remove_referenceIS2_E4typeE' unresolved while linking [cling interface function]!
You are probably missing the definition of float const& std::forward<float const&>(std::remove_reference<float const&>::type&)
Maybe you need to load the corresponding shared library?
As I’m quite new to ROOT and C++ I’m not sure how to resolve this and any advice would be appreciated. My current work around is to quit the session and start a new one. Many thanks!
The macro:
#include <vector>
int test(){
std::vector<float> dRs;
float dR = 1.0;
dRs.push_back(dR);
return 1;
}