From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25124 invoked by alias); 14 Aug 2002 16:47:29 -0000 Mailing-List: contact gsl-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sources.redhat.com Received: (qmail 24994 invoked from network); 14 Aug 2002 16:47:27 -0000 Received: from unknown (HELO bio.vu.nl) (130.37.80.1) by sources.redhat.com with SMTP; 14 Aug 2002 16:47:27 -0000 Received: from ursus.bio.vu.nl (ursus [130.37.80.249]) by bio.vu.nl (8.9.3+Sun/8.9.3) with ESMTP id SAA01351; Wed, 14 Aug 2002 18:47:26 +0200 (MEST) Received: from localhost (fleur@localhost) by ursus.bio.vu.nl (8.11.6+Sun/8.9.3) with ESMTP id g7EGlPl12938; Wed, 14 Aug 2002 18:47:25 +0200 (MEST) X-Authentication-Warning: ursus.bio.vu.nl: fleur owned process doing -bs Date: Wed, 14 Aug 2002 09:47:00 -0000 From: Fleur Kelpin X-X-Sender: fleur@ursus To: "=?iso-8859-1?q?Y.=20U.=20Sasidhar?=" cc: gsl-discuss@sources.redhat.com Subject: Re: unable to compile example program; In-Reply-To: <20020814153116.96084.qmail@web21404.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-q3/txt/msg00135.txt.bz2 > 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.