Hi, there is following strange behaviour which I can’t explain. If you know what is the cause, please tell me
1st scenario, works fine:
- starting
cling
#include<cmath>
-
std::abs(.5)
prints(double) 0.5
2nd scenario, does not work:
- creating file
~/.clangrc
with content
#include<cmath>
- start
cling -include ~/.clingrc
-
std::abs(.5)
prints
IncrementalExecutor::executeFunction: symbol '_ZSt3absd' unresolved while linking [cling interface function]!
You are probably missing the definition of std::abs(double)
Maybe you need to load the corresponding shared library?
Maybe related to cling::printValue(void const**) unresolved while linking [cling interface function]!
Further links:
http://www.cplusplus.com/reference/cmath/abs/
and
cling downloaded from https://root.cern.ch/download/cling/
cling --version
: 0.6~dev
cling -print-libgcc-file-name
: /usr/lib/gcc/x86_64-linux-gnu/5.4.0/libgcc.a
cat /etc/lsb-release
: Ubuntu 16.04.2 LTS