public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
* unable to compile example program;
@ 2002-08-14  8:31 Y. U. Sasidhar
  2002-08-14  8:57 ` Ed Hill
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Y. U. Sasidhar @ 2002-08-14  8:31 UTC (permalink / raw)
  To: gsl-discuss

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-08-15 13:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-14  8:31 unable to compile example program; Y. U. Sasidhar
2002-08-14  8:57 ` Ed Hill
2002-08-14  9:47 ` Fleur Kelpin
2002-08-15  6:11   ` Y. U. Sasidhar
2002-08-14 13:45 ` Brian Gough

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).