|
From: | David Schaich |
Subject: | Re: [Help-gsl] Problem with GSL on my macbook |
Date: | Fri, 04 Apr 2008 10:41:44 -0400 |
User-agent: | Thunderbird 2.0.0.12 (X11/20080213) |
http://www.gnu.org/software/gsl/manual/html_node/Compiling-and-Linking.html http://www.gnu.org/software/gsl/manual/html_node/Linking-programs-with-the-library.html -David 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?
[Prev in Thread] | Current Thread | [Next in Thread] |