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



_______________________________________________
Bug-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gsl

Reply via email to