help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] undefined symbol 'gsl_sf_bessel_J0'


From: Xianwen Chen
Subject: Re: [Help-gsl] undefined symbol 'gsl_sf_bessel_J0'
Date: Thu, 5 Apr 2012 13:45:10 +0000

Hi Frank,

On Thu, Apr 5, 2012 at 9:13 AM, Frank Reininghaus
<address@hidden> wrote:
> Hi,
>
> Am 5. April 2012 06:28 schrieb Xianwen Chen <address@hidden>:
>> I first produced the objective file:
>>    tcc -c Bessel_function.c
>>
>> When I was linking the objective file with the libraries:
>>    tcc -lgsl -lgslcblas -lm Bessel_function.o
>> ,  I got the following error:
>>    tcc: undefined symbol 'gsl_sf_bessel_J0'
>
> I would try first to change the order of the arguments, i.e.,
>
> tcc Bessel_function.o -lgsl -lgslcblas -lm

That works very well.  However, when I ran the produced program, the
result turned out to be
    J0(5) = -nan
, which should be
    J0(5) = -1.775967713143382920e-01
.

Does someone know what the problem is? Thanks!

Xianwen



-- 
Xianwen Chen
+1-307-223-2032
address@hidden | umb.no | yahoo.com}
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]