This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: undefined reference


On Mon, 22 Sep 2003, cx101 wrote:

> When compiling, I was told:
> /tmp/cc807SzQ.o(.text+0x28): In function 'main':
> :undefined reference to 'gsl_sf_bessel_J0'
> collect2: ld return 1 exit status

It's the linker that produced the error message.  You need to tell us
the exact command line you used to invoke the compiler.  My guess is
that you forgot to include $(gsl-config --libs) (ksh syntax, use
backquotes in sh) for the linking step.

- martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]