unable to compile example program;
Y. U. Sasidhar
yusasidhar@yahoo.com
Wed Aug 14 08:31:00 GMT 2002
1. I am trying compile the example program:
=============================================
#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;
}
=============================================
using
gcc gsl.c -o gsl
and getting the error:
-----------------------------------------
undefined reference to `gsl_sf_bessel_J0'
collect2: ld returned 1 exit status
--------------------------------------------
OS redhat 7.1 on PIV
gsl version .7
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.
Sasidhar
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
More information about the Gsl-discuss
mailing list