gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gm2] exp10 woes [Was; Re: Updated report on gm2-2010-02-25 on Solaris 1


From: john o goyo
Subject: [Gm2] exp10 woes [Was; Re: Updated report on gm2-2010-02-25 on Solaris 10/sparc]
Date: Sun, 28 Feb 2010 14:22:11 -0500


On 26-Feb-10, at 1:28 PM, Gaius Mulley wrote (in part):
Quite a few errors are to do with unresolved references to:

exp10
exp10f
exp10l

do you know which libraries these symbols are found in?  (libm.a ?)

It seems that exp10 is a glibc extension not found on many platforms
(including MacOS X, FreeBSD, AIX, HP-UX 11, and Solaris 10) but found
in most Linux distributions.

Solaris 10 contains exp10 in its libsunmath but this is not accessible
to gcc. it seems silly but perhaps adding the following to the Solaris build
may solve this.

#include <math.h>

double exp10(double x)
{
  return exp(x*M_LN10);
} /* exp10 */

and link with -lm.

(Sigh)
john




reply via email to

[Prev in Thread] Current Thread [Next in Thread]