help-gsl
[Top][All Lists]
Advanced

[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:

Hi,
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 libgsl.so and all

address@hidden lib]$ pwd
/usr/local/lib
address@hidden lib]$ ls
ivtools                         libcv.la                        libgslcblas.a   
        libIV.so
libAttrGlyph.so                 libcv.so                        libgslcblas.la  
                libIV.so.1.2.2
libAttrGlyph.so.1.2.2   libcv.so.0                      libgslcblas.so          
libOverlayUnidraw.so
libAttribute.so                 libcv.so.0.9.7                  
libgslcblas.so.0        libOverlayUnidraw.so.1.2.2
libAttribute.so.1.2.2           libcxcore.la                    
libgslcblas.so.0.0.0    libTime.so
libComGlyph.so                  libcxcore.so                    libgsl.la       
                libTime.so.1.2.2
libComGlyph.so.1.2.2            libcxcore.so.0                  libgsl.so       
                libTopoFace.so
libComTerp.so                   libcxcore.so.0.9.7              libgsl.so.0     
                libTopoFace.so.1.2.2
libComTerp.so.1.2.2             libdha.so.1                     libgsl.so.0.7.0 
        libUnidraw-common.so
libComUnidraw.so                libdha.so.1.0                   libhighgui.la   
                libUnidraw-common.so.1.2.2
libComUnidraw.so.1.2.2          libDrawServ.so                  libhighgui.so   
        libUnidraw.so
libComUtil.so                   libDrawServ.so.1.2.2            libhighgui.so.0 
        libUnidraw.so.1.2.2
libComUtil.so.1.2.2             libFrameUnidraw.so              
libhighgui.so.0.9.7     libUniIdraw.so
libcvaux.la             libFrameUnidraw.so.1.2.2        libIV-common.so         
libUniIdraw.so.1.2.2
libcvaux.so             libGraphUnidraw.so              libIV-common.so.1.2.2   
mplayer
libcvaux.so.0           libGraphUnidraw.so.1.2.2        libIVGlyph.so           
pkgconfig
libcvaux.so.0.9.7               libgsl.a                        
libIVGlyph.so.1.2.2



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

/*gsl1.c*/
#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;
    }
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
address@hidden
http://lists.gnu.org/mailman/listinfo/help-gsl



--
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]