delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/20/10:20:41

Date: Thu, 20 Mar 1997 18:05:29 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Graham Howard Wile <an118 AT chebucto DOT ns DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: Glitch in DJGPP's "modf" function ?
In-Reply-To: <5gncte$aec@News.Dal.Ca>
Message-ID: <Pine.SUN.3.91.970320180500.24420C-100000@is>
MIME-Version: 1.0

On 19 Mar 1997, Graham Howard Wile wrote:

> 	Sometimes when I use the "modf" function, the values in other 
> totally unrelated variables get scrambled. Is this a glitch in DJGPP 
> itself that I need to get a patch for ? 

Are you linking in libm.a (do you have -lm on the link command line)?
If not, add one; if you do, delete it.  libc.a and libm.a have
different implementations of this function; if the problem persists,
it is likely to be in the rest of your program.

- Raw text -


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