unable to compile example program;

Y. U. Sasidhar yusasidhar@yahoo.com
Thu Aug 15 06:11:00 GMT 2002


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



More information about the Gsl-discuss mailing list