From: "Y. U. Sasidhar" <yusasidhar@yahoo.com>
To: gsl-discuss@sources.redhat.com
Subject: unable to compile example program;
Date: Wed, 14 Aug 2002 08:31:00 -0000 [thread overview]
Message-ID: <20020814153116.96084.qmail@web21404.mail.yahoo.com> (raw)
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
next reply other threads:[~2002-08-14 15:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-14 8:31 Y. U. Sasidhar [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020814153116.96084.qmail@web21404.mail.yahoo.com \
--to=yusasidhar@yahoo.com \
--cc=gsl-discuss@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).