Problem with KVUnits ?
Is there an issue with KVUnits in the root interpreter ?
kaliveda [0] KVUnits::cm
ROOT_prompt_0:1:1: error: 'KVUnits' is not a class, namespace, or enumeration
KVUnits::cm
^
ROOT_prompt_0:1:1: note: 'KVUnits' declared here
However, the following macro compiles and executes perfectly :
#include "Riostream.h"
#include "KVUnits.h"
void print()
{
cout << KVUnits::cm << endl;
}
kaliveda [0] .L print.C+
Info in <TUnixSystem::ACLiC>: creating shared library /home/gruyer/software/test/kaliveda/./test_units_C.so
kaliveda [1] print()
1
With :
kaliveda-config --version 1.14/0
root-config --version 6.27/01
Remark : after compiling/executing the macro, KVUnits are OK in the interpreter...
Remark : I think we have the same problem in tkn-root (never solved), due to the use of namespaces.
Edited by Diego Gruyer