[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] undefined reference problem with GSL functions
From: |
Mike Smith |
Subject: |
[Help-gsl] undefined reference problem with GSL functions |
Date: |
Tue, 26 Jul 2005 15:06:41 -0700 (PDT) |
Hello, All
I tried a very simple example on the gsl reference
manual to test the GSL installed in my Cygwin. The
program is the following:
#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;
}
When I do
gcc -Wall -L/usr/local/include/gsl test.c -o test ,
the following error will be reported:
..../Temp/ccRVEv5H.o:test.c:(.text+0x3a): undefined
reference to `_gsl_sf_bessel_J0'
The undefined reference problem is persistent whenever
I try to use any GSL functions.
I installed gsl in the default directory and "make
check" works fine.
Does anybody know what happens?
Thanks a lot,
--Mike
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
- [Help-gsl] undefined reference problem with GSL functions,
Mike Smith <=