Re: undefined reference to `ROOT::Math::sph_legendre(unsigned int, unsigned int, double)'

From: Benjamin Bannier <bbannier_at_gmail.com>
Date: Wed, 28 Mar 2012 06:12:40 -0400


Hi Antonio,

On Wed, Mar 28, 2012 at 12:04:49PM +0200, Antonio Augusto Alves Jr wrote:
> I am trying compile this small peace of code,
> ...
>
> but i got these errors:
> root [0] .L PrivateMath.h+
> Info in <TUnixSystem::ACLiC>: creating shared library
> /home/augalves/Documentos/Dropbox/scripts/INFN/B2KPiPsi/./PrivateMath_h.so
> /home/augalves/Documentos/Dropbox/scripts/INFN/B2KPiPsi/PrivateMath_h_ACLiC_dict.o:
> In function `m_P(unsigned int, double)':
> PrivateMath_h_ACLiC_dict.cxx:(.text+0x4cd): undefined reference to
> `ROOT::Math::sph_legendre(unsigned int, unsigned int, double)'
> collect2: ld returned 1 exit status
> Error in <ACLiC>: Compilation failed!
> root [1]
>

ROOT::Math::sph_legendre is in libMathMore which you need to load.

    root [0] gSystem->Load("libMathMore")     root [1] .L PrivateMath.h+

HTH, b.

-- 
"Good judgment comes from experience. Experience comes from bad judgment."

Received on Wed Mar 28 2012 - 12:12:52 CEST

This archive was generated by hypermail 2.2.0 : Wed Mar 28 2012 - 17:50:01 CEST