help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] Newbie linker error


From: Joakim Hove
Subject: Re: [Help-gsl] Newbie linker error
Date: Wed, 31 Mar 2004 09:11:57 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

"Brendan O'Fallon" <address@hidden> writes:


> [1005 ~/Projects]$gcc mathc.c

Well, you don't specify wich libraries to link with. Try:

 [1005 ~/Projects]$ gcc mathc.c -lm -lgsl -lgslcblas

The first library is the standard math library, the second is the gsl
library, and the third is a blas library, this can be replaced with a
vendor specific library. The blas library is needed for programs
involving vector/matrix operations, i.e. the simple bessel-function
program you demonstrate probably will not need this.

HTH - Joakim


-- 
  /--------------------------------------------------------------------\
 / Joakim Hove  / address@hidden  /  (55 5) 84076       |                 \
 | Unifob AS, Avdeling for Beregningsvitenskap (BCCS) | Stabburveien 18 |
 | CMU                                                | 5231 Paradis    |
 \ Thormøhlensgt.55, 5020 Bergen.                     | 55 91 28 18     /
  \--------------------------------------------------------------------/





reply via email to

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