help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] Problem with GSL on my macbook


From: Tommy Nordgren
Subject: Re: [Help-gsl] Problem with GSL on my macbook
Date: Fri, 4 Apr 2008 21:39:08 +0200


On 4 apr 2008, at 16.33, Alexis Quentin wrote:

Hi every one,
I want to use the GSL on my macbook. So I installed it using darwinports.
Then I wrote a C program :

#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>

int
main (void)
{
 double x = 5.0;
 double y = gsl_sf_bessel_J0 (x);
 printf ("J0(%g) = %.18e\n", x, y);
 return 0;
}

I wrote it with XCode (Carbon). When I compile (with gcc), my terminal
answer me :
/usr/bin/ld: Undefined symbol:
_gsl_sf_bessel_J0
collect2: ld returned 1 exit status

Can you help me to make gsl working?
_______________________________________________
Help-gsl mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-gsl
You need to add -L/usr/local/lib and -lgsl and often -lgslcblas as well,
to the command line when linking.
-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
address@hidden








reply via email to

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