[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Gsl not working

From: Pau Cervera Badia
Subject: Re: [Help-gsl] Gsl not working
Date: Tue, 23 Aug 2005 18:55:35 +0200
User-agent: Mozilla Thunderbird 1.0.6-1.1.fc3 (X11/20050720)

I think if you try to compile as:

$ gcc -L/usr/local/lib -lgsl -lgslcblas -lm gsl1.c

it will work.

Omkar Pangarkar wrote:

I have recently installed gsl 1.6 I have blas and lapack which came along with redhat 9.0 My computer configurations are Red hat linux 9.0
Intel pentium 3 processor,192mb ram,650mhz.
gcc 3.2.2 with all the gnu utilities came along with Redhat 9

I have compiled gsl properly and did 'make install' (as root).
Hence there seemed no problem in gsl installation.
As u can see my library files; i have and all

address@hidden lib]$ pwd
address@hidden lib]$ ls
ivtools                                       libgslcblas.a                         
pkgconfig               libgsl.a               

When i try to compile following gsl c program using gcc
as given in handbook of gsl:

#include <stdio.h>
    #include <gsl/gsl_sf_bessel.h>
    main (void)
      double x = 5.0;
      double y = gsl_sf_bessel_J0 (x);
      printf ("J0(%g) = %.18e\n", x, y);
      return 0;
gcc gave me following error:

address@hidden omkar]$ gcc gsl1.c
gsl1.c:13:1: warning: no newline at end of file
/tmp/ccuZcvz7.o(.text+0x28): In function `main':
: undefined reference to `gsl_sf_bessel_J0'
collect2: ld returned 1 exit status
address@hidden omkar]$

Hence there might be problem in the gsl.
I want gsl badly.
Please help me to solve it.

Help-gsl mailing list

Pau Cervera i Badia (e-mail address@hidden)
  Departament de Física Fonamental                 Martí i Franqués, 1
  Universitat de Barcelona                   Planta 3, despatx 346 bis
                                                       08028 Barcelona
  tel: +34 934 921 155                                           Spain

  "To err is human, but to really foul things up requires a computer."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]