delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/04/09/12:25:29

Date: Fri, 9 Apr 1993 10:15:10 -0600
From: tesla AT lamar DOT ColoState DOT EDU (Jon Nash)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Bessel functions in math.h

I'm writing a program in which I need to use bessel functions (jn(double,int)).
I don't need the accuracy of doubles, so I'm using floats...  The compiler
can't find the linker can't find the function jn.  I'm including math.h and
I'm linking libm.a.  Could the problem be that, according to math.h the code
is actually C++ code and somehow the linker is looking for jn(float,int)
because of the way I've coded my program?

I know that other stuff in the math library works, sin, cos, etc. because I've
used those.  I've never had a problem with passing floats or doubles to math
functions in other compilers...

Does anyone have any ideas!?

Thanks in advance.

Jon Nash
Tesla AT Lamar DOT ColoState DOT EDU

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019