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

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Fri, 30 Mar 2012 09:13:47 -0500


 > I will always have to load the libMathMore before compile it?

Yes, there is currently no autoloading of namespace or function.

Cheers,
Philippe.

On 3/28/12 5:25 AM, Antonio Augusto Alves Jr wrote:
> Hi thanks,
>
> Actually, I would to include the PrivateMat.h in the headers and call the m_P(int, double) function from inside other methods...
>
> I will always have to load the libMathMore before compile it?
>
>
> Thanks
> A.A.
>
>
>
> Em 28-03-2012 12:12, Benjamin Bannier escreveu:
>> 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.
>>
>
>
Received on Fri Mar 30 2012 - 16:13:54 CEST

This archive was generated by hypermail 2.2.0 : Fri Mar 30 2012 - 23:50:01 CEST