[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] Exponential curve fit example
From: |
Gordan Bobic |
Subject: |
Re: [Help-gsl] Exponential curve fit example |
Date: |
Mon, 16 Jul 2007 15:51:20 +0100 (BST) |
On Sun, 15 Jul 2007, Martin Jansche wrote:
> > I'm having difficulty in getting the exponential curve fit example to
> > even compile. Whenever I try it, I get undefined references to things
> > like gsl_matriix_alloc and gsl_vector_view_array.
>
> Most likely a linker error -- you're not linking against the GSL
> libraries. Try linking with
>
> gcc -o foo foo.o bar.o $(gsl-config --libs)
Thanks, that did the trick. I wasn't including all the required libraries
in the link stage. I can't believe I did that. Thanks for the hint about
gsl-config, I didn't know about that. :-)
Gordan