This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: unable to compile example program;
- From: "Y. U. Sasidhar" <yusasidhar at yahoo dot com>
- To: gsl-discuss at sources dot redhat dot com
- Date: Thu, 15 Aug 2002 14:11:04 +0100 (BST)
- Subject: Re: unable to compile example program;
Many thanks for the responses.
Once I installed the recent 1.2 version rpm there was
no problem with compiling ( with -lgsl -lgslcblas ).
I was using .7 version earlier.
Sasidhar
--- Fleur Kelpin <fleur@bio.vu.nl> wrote: > > gcc
gsl.c -o gsl
>
> You need to link the gsl library using -lgsl
> Check the manual for details.
>
> > 2. How do I know which header file to include for
> a
> > given function and dependencies of the given
> function
> > on others. The manual lists only function
> description
> > with return types etc. It does not mention header
> > files necessary and depedencies.
>
> You could use grep to search the gsl header files
> for the function you
> need. I don't know in which dir RH stores those
> files, my guess is
> /usr/include/gsl
>
> $ grep gsl_sf_bessel_J0 /usr/include/gsl/*
> gsl_sf_bessel.h:int gsl_sf_bessel_J0_e(const double
> x, gsl_sf_result *
> result);
> gsl_sf_bessel.h:double gsl_sf_bessel_J0(const double
> x);
>
> If that does not work on your system, search for the
> header files and use
> that dir.
>
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com