Lee Rhodes wrote:

> The compiler/linker is able to locate the header ok, but the error message I
> get on the line that calls the function is:
> 
>         undefined reference to `_gsl_sf_bessel_J0'
> 
> Somehow the function name got mangled with an added underscore, and of
> course, it doesn't exist.

You neglected to show us the actual compile and link command you ran
was, and there's really no way we can help you without that.  It's
probably incorrect ordering of arguments.

Also, it is standard that cdecl functions have a leading underscore as
part of their assembler name (which is what the diagnostic messages tell
you, since they're from the linker not the compiler), and this has been
the case for probably the last 20 years of C.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to