This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Compiling error
- To: Marcos Lemos Ferreira dos Santos <mlemos at linux dot ime dot usp dot br>
- Subject: Re: Compiling error
- From: Brian Gough <bjg at network-theory dot co dot uk>
- Date: Tue, 15 Aug 2000 18:55:23 +0100 (BST)
- Cc: gsl-discuss at sources dot redhat dot com
- References: <Pine.LNX.4.21.0008142052140.4462-100000@pinga.linux.ime.usp.br>
- Reply-To: gsl-discuss at sources dot redhat dot com
I think you need to link with -lgsl -lgslblas -lm. See the "Usage"
chapter in the GSL manual for more details on how to link programs
using gsl.
regards
Brian Gough
Marcos Lemos Ferreira dos Santos writes:
>
> When I am compiling a program, the system shows the message:
>
> /tmp/ccY6Jw9Q.o: In function `main':
> /tmp/ccY6Jw9Q.o(.text+0xa): undefined reference to `gsl_rng_mt19937'
> /tmp/ccY6Jw9Q.o(.text+0x10): undefined reference to `gsl_rng_alloc'
> /tmp/ccY6Jw9Q.o(.text+0x64): undefined reference to `gsl_ran_gaussian'
> /tmp/ccY6Jw9Q.o(.text+0x8e): undefined reference to `gsl_ran_gamma'
> collect2: ld returned 1 exit status
>
> I am using include files correctly, but the system shows de message!!!
>
> Help me!!!
>
>
> ================================================================
>
> Marcos Lemos F dos Santos <mlemos@linux.ime.usp.br>
>
>
> "A vida é a arte do encontro"
> Embora haja tanto desencontro pela vida"
> (Vinicius de Moraes)
> =================================================================
>
>