delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/23/13:09:47

Date: Thu, 23 Apr 1998 20:08:45 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Kbwms <Kbwms AT aol DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Problems with paranoia.c and pow(0,0)
In-Reply-To: <2cd092ba.353f5d4a@aol.com>
Message-ID: <Pine.SUN.3.91.980423200512.11649A-100000@is>
MIME-Version: 1.0

On Thu, 23 Apr 1998, Kbwms wrote:

> This produced the following:
> 
> pow(0,0) = NaN

Did you link this (and paranoia.c) with -lm switch?  If not, then please 
try -lm.  I think you will get the desired results.

The math functions in libc.a are for those who don't know that Unix
compilers need to see -lm to link them in (you won't believe how many
questions were asked about this in the days of DJGPP v1.x when without -lm
you'd get unresolved externals).  The versions in libc.a are good enough
for garden variety programs, but if you need serious FP computations, you
have to say -lm. 

- Raw text -


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