help-gsl
[Top][All Lists]
Advanced

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

[Help-gsl] Cannot compile example.c


From: César Asensio
Subject: [Help-gsl] Cannot compile example.c
Date: Mon, 5 Jun 2006 11:10:06 +0200

The following minimal program example.c, found in the info file for GSL,
does not compile on Cygwin.

     #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;
     }

The command used for compilation is simply

    gcc example.c

and the error message is

/cygdrive/c/temp/ccvkPjgO.o:example.c:(.text+0x3a): undefined reference to
`_gsl_sf_bessel_J0'
collect2: ld returned 1 exit status

Someone can help me?

Thanks

Cesar







reply via email to

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