delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/05/14:20:11

From: Sengan DOT Short AT durham DOT ac DOT uk
Message-Id: <25900.9605051801@bylands.dur.ac.uk>
Subject: Re: libm.a/linker *BUG* with test program
To: ao950 AT FreeNet DOT Carleton DOT CA
Date: Sun, 5 May 1996 19:01:36 +0100 (BST)
Cc: djgpp AT delorie DOT com
In-Reply-To: <4me6om$5md@freenet-news.carleton.ca> from "Paul Derbyshire" at May 4, 96 00:01:26 am
Mime-Version: 1.0

> This may be a stupid question but: why is it that when the math library is
> not on the command line, it not only links and resolves the calls to pow
> and ldexp, but it *works* too???
> And, of course, if this program works without the library and crashes with
> it, maybe you might try just not using the library for this situation...
> 
> --
>     .*.  "Clouds are not spheres, mountains are not cones, coastlines are not
>  -()  <  circles, and bark is not smooth, nor does lightning travel in a
>     `*'  straight line."    ,------------------------------------------------
>          -- B. Mandelbrot  |  Paul Derbyshire (PGD) ao950 AT freenet DOT carleton DOT ca
> 


There appears to be a bug in the cygnus math library as far as pow and ldexp
go. The solution is to use the functions in the standard libaries instead. They
appear to work. (ie pow and ldexp are in two different libraries, and you can
link in one or the other)

Sengan

- Raw text -


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