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
[email protected]
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
[EMAIL PROTECTED]
_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl