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 <[EMAIL PROTECTED]> 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
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-gsl
>



-- 
Rohit Garg
Junior Undergraduate
Department of Physics
IIT Bombay


_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to