help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] subscribe


From: Rohit Garg
Subject: Re: [Help-gsl] subscribe
Date: Wed, 6 Feb 2008 18:27:38 +0530

you are (probably)not linking to gsl libraries
try the wikipedia page for compiling instructions for gsl

On Feb 4, 2008 11:07 PM, dgolez <address@hidden> wrote:
> Hi!
>
>         I've got problems using GSL library in CDT. If I try to compile
>         this program
>         undefined reference error occurs.
>
>         #include<stdio.h>
>         #include<gsl/gsl_sf_bessel.h>
>
>
>         int main (void)
>         {
>         double x = 5.0;
>         double y = gsl_sf_bessel_J0(x);
>         printf("J0(%g) = %.18e\n", x, y);
>         return 0;
>         }
>
>         There is undefined reference error. But I can compile this
>         without a
>         problem:
>
>         #include<stdio.h>
>         #include<gsl/gsl_math.h>
>
>
>         int main (void)
>         {
>         printf("%f\n", M_E);
>         return 0;
>         }
>
>         Can anyone help me??
>         Thanks
>
>
>
> _______________________________________________
> Help-gsl mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-gsl
>



-- 
Rohit Garg
Junior Undergraduate
Department of Physics
IIT Bombay




reply via email to

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