[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] Need help getting started!
From: |
Thomas Spuhler |
Subject: |
Re: [Help-gsl] Need help getting started! |
Date: |
Fri, 12 Oct 2007 13:19:06 -0700 |
User-agent: |
KMail/1.9.7 |
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