bug-gsl
[Top][All Lists]
Advanced

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

Re: [Bug-gsl] Potential bug for gsl documentation


From: Peter Johansson
Subject: Re: [Bug-gsl] Potential bug for gsl documentation
Date: Thu, 21 Oct 2010 20:41:52 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2

 On 10/20/10 4:42 PM, Brian Gough wrote:
At Sun, 17 Oct 2010 17:44:19 +0200,
Michael Rockinger wrote:
it is mentioned that one should link using
$ gcc -L/usr/local/lib example.o -lgsl -lgslcblas -lm
my problem is that systematically, gcc tells me that the library -lm
does not exist :-(.

After removal of the last 3 letters -lm, everything works !!
That is useful.  I wasn't aware of that, I have never used a Mac.
I've added a note to the manual that -lm is not always needed.


FWIW, from version 1.15 `gsl-config --libs` will contain '-lm' only when it is needed on the system in question.

Cheers,
Peter





reply via email to

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