This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Compiling error


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)
 > =================================================================
 > 
 > 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]