[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] question about error in compiling ex program
From: |
Yiwen Chen |
Subject: |
[Help-gsl] question about error in compiling ex program |
Date: |
Tue, 07 Sep 2004 00:49:35 EDT |
Hi there:
When I tried to complie the Example program provided by gsl manual
after successful installation of gsl.
#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 got the error information like this:
/tmp/ccypleEX.o(.text+0x28): In function 'main':
:undefined reference to `gsl_sf_bessel_J0'
/tmp/ccypleEx.o(.eh_frame+0x11):undefined reference to `_gxx_perssonality_v0'
collect2: ld returned 1 exit status
Is there anybody having similar experience and what do you think
is the probable sourse of errors?
Thanks a lot.
Yiwen Chen
________________________________________________________________
This message was sent using UNC Physics' Webmail
http://webmail.physics.unc.edu
- [Help-gsl] question about error in compiling ex program,
Yiwen Chen <=