Date: Thu, 23 Apr 1998 20:08:45 +0300 (IDT) From: Eli Zaretskii To: Kbwms 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.