On Friday 12 October 2007, jgvicke wrote:
>         #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;
>         }

Compiles ok, but I use a makefile that does the links.

 The program is in the test.c 
the make file has this:
**************************

GSLLIBS = -L/usr/local/lib -lgsl -lgslcblas
GSLINCS = -I/usr/local/include

# space separated list of source files in program
SOURCES = test.c

# change testProgram.exe to the name you wish your
# executable program to be
TEST: $(SOURCES)
        g++ -o $@ $(GSLINCS) $(GSLLIBS) $(SOURCES) 


**************************

-- 
good luck

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

Reply via email to