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: Ze Ji
Subject: Re: [Help-gsl] Gsl not working
Date: Tue, 23 Aug 2005 17:59:38 +0100

---------- Forwarded message ----------
From: Ze Ji <address@hidden>
Date: 23-Aug-2005 17:58
Subject: Re: [Help-gsl] Gsl not working
To: Omkar Pangarkar <address@hidden>


perhaps, you have not linked the libraries when compile. two libraries
are needed, -L ..path_of_library.. -lgsl -lgslcblas

my knowledge of gcc is very limited. This is what came into my mind
for your question.

Ze Ji

On 23 Aug 2005 15:28:59 -0000, Omkar Pangarkar <address@hidden> 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
>




reply via email to

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