[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gsl] gsl error in make command-help asap please
From: |
Rhys Ulerich |
Subject: |
Re: [Bug-gsl] gsl error in make command-help asap please |
Date: |
Thu, 28 Feb 2013 09:46:49 -0600 |
Please keep the mailing list CCed.
>> This looks like you're missing -lm to link the math library.
> what link is that?
> i just ran ./configure then make after downloading the gsl
>
> with version 1.2, it gives error /.libs/libgsl.so: undefined reference to
> 'atan'
First off, are you using GSL version 1.2? That's from 2002. Use GSL
1.15 from ftp://ftp.gnu.org/gnu/gsl/gsl-1.15.tar.gz.
Secondly, what are the compilation and link lines appearing above the
linking error message that you see?
For example, when I run 'make' within the siman directory, I see
messages beginning like
/bin/sh ../libtool --tag=CC --mode=compile gcc ...
libtool: compile: gcc ...
/bin/sh ../libtool --tag=CC --mode=link gcc ...
libtool: link: ar ...
What do you see? I suspect that what you see is missing a '-lm' flag
which is why you're getting undefined reference errors to math
routines like atan and exp.
- Rhys