Hi Frank,

On Thu, Apr 5, 2012 at 9:13 AM, Frank Reininghaus
<frank7...@googlemail.com> wrote:
> Hi,
>
> Am 5. April 2012 06:28 schrieb Xianwen Chen <xianwen.c...@gmail.com>:
>> 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
xianwen.chen@{gmail.com | umb.no | yahoo.com}
xch...@uwyo.edu

Reply via email to