Dear Sirs,
I would like to use the multinomial distribution function in Math/GSLRndmEngines.h
I included the GSLRndmEngines.h,
and then I wrote down these lines
vectorproba;
ROOT::Math::GSLRngMT * random;
random->Initialize();
vector evtsPerChannel = random->Multinomial(4, proba);
and then I got this errors
ndefined symbols:
“ROOT::Math::GSLRandomEngine::Initialize()”, referenced from:
pseudoexp_generation() in pseudoexp_generation_C_ACLiC_dict.o
"ROOT::Math::GSLRandomEngine::Multinomial(unsigned int, std::vector<double, std::allocator > const&) const", referenced from:
pseudoexp_generation() in pseudoexp_generation_C_ACLiC_dict.o
"_main", referenced from:
start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
*** Interpreter error recovered ***
What could I do?
Bets Regards
moneta
2
Hi,
Before running ACLC on your macro try to do from the root prompt
root [0] gSystem->Load("libMathMore")
Best Regards
Lorenzo
This is the output
root [0] gSystem->Load(“libMathMore”)
Error in TUnixSystem::DynamicPathName: libMathMore[.so | .sl | .dl | .a | .dll] does not exist in /Users/fabrizioruffini/root_v5_27/lib:/Users/fabrizioruffini/root_v5_27/lib::/Users/fabrizioruffini/root_v5_27/lib::.:/Users/fabrizioruffini/root_v5_27/lib::/Users/fabrizioruffini/root_v5_27/cint/cint/stl
(int)(-1)
I assumed that in the version 27 I’m using the library was included. Was I wrong? Do I need to install a new release?
pcanal
4
[quote]I assumed that in the version 27 I’m using the library was included.[/quote]Which version? How/where did you download it (from)?
I strongly recommend (if possible) to upgrade to v5.30.
Cheers,
Philippe.