Re: [ROOTDEV] SpecFunc

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Wed, 10 Mar 2010 18:57:18 +0100


Hi Christian,

you need to add libMathMore to the list of linked libraries.

Cheers

Lorenzo
On Mar 10, 2010, at 5:05 PM, Christian Hansen wrote:

> Dear Rooters,
>
> What do I do wrong then I try to use the special function comp_ellint_1 ?
>
>
> # include "Math/SpecFunc.h"
> using namespace std;
> int main() {
> double K = ROOT::Math::comp_ellint_1(0.7);
> cout<<"K = "<<K<<endl;
> }
>
>
> When I compile this it says
>
> Undefined symbols:
> "ROOT::Math::comp_ellint_1(double)", referenced from:
> _main in test.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make: *** [test] Error 1
>
>
> Please see the attached test program that I try to compile.
>
> Best regards
> /Christian
>
> <test.tgz>
Received on Wed Mar 10 2010 - 18:57:25 CET

This archive was generated by hypermail 2.2.0 : Thu Mar 11 2010 - 11:50:01 CET