can't link against math.h
Montgomery-Smith, Stephen
stephen at missouri.edu
Thu Oct 26 03:02:00 UTC 2017
On 10/25/2017 09:05 PM, blubee blubeeme wrote:
> I wrote a simple test program to test and see if math.h has the function:
> exp10f
> Does FreeBSD math.h have expf10 and if so, how do I link against it?
> _______________________________________________
I think exp10f is a Linux only function. In its man page, it says it is
a GNU extension.
http://man7.org/linux/man-pages/man3/exp10.3.html
I would implement it using the pow function, e.g.
#define exp10f(x) (powf(10.,x))
More information about the freebsd-ports
mailing list