Loading...

help-gsl@gnu.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [Help-gsl] undefined symbol 'gsl_sf_bessel_J0' Xianwen Chen Thu Apr 05 07:03:40 2012

Hi Frank,

On Thu, Apr 5, 2012 at 9:13 AM, Frank Reininghaus
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Am 5. April 2012 06:28 schrieb Xianwen Chen <[EMAIL PROTECTED]>:
>> 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
[EMAIL PROTECTED] | umb.no | yahoo.com}
[EMAIL PROTECTED]