help-gsl
[Top][All Lists]
Advanced

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

[Help-gsl] Re: Cannot compile example.c


From: Nicolás Quesada
Subject: [Help-gsl] Re: Cannot compile example.c
Date: Thu, 8 Jun 2006 19:35:55 -0700

I'm having the same problem compiling the same program under FreeBSD : I type:

gcc -L/usr/local/lib example.o -lgsl -lgslcblas -lm
and
gcc example.o -lgsl -lgslcblas -lm

gcc   /usr/local/include/gsl/ example.o -lgsl -lgslcblas -lm
It is installed in /usr/local/include/gsl/

the error I get is:
ex.c:2:31: gsl/gsl_sf_bessel.h: No such file or directory



any suggestions?

thanks in advance

Nicolás Quesada

On 6/8/06, Thomas Weber <address@hidden> wrote:
Hi,

Am Montag, den 05.06.2006, 11:10 +0200 schrieb César Asensio:
> The command used for compilation is simply
>
>     gcc example.c
>
> and the error message is
>
> /cygdrive/c/temp/ccvkPjgO.o:example.c:(.text+0x3a): undefined reference to
> `_gsl_sf_bessel_J0'
> collect2: ld returned 1 exit status

Please read section 2.2 of the GSL Reference Manual, especially
http://www.gnu.org/software/gsl/manual/html_node/Linking-programs-with-the-library.html#Linking-programs-with-the-library

        Thomas



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