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

Bug#231313: libc6-dev: function 'pow', not found in 'math.h'?!



On Thu, Feb 05, 2004 at 08:26:46PM +0100, Per Blomqvist wrote:

> function 'pow' are suppose to be in the 'math.h' according the "C
> Library manual" glibc-doc.. :

Here's my testcase:

$ cat main.c
#include <stdio.h>
#include <math.h>
 
int
main ()
{
  printf("%f\n", pow(2, 3));
  return(0);
}

$ gcc -O2 -Wall -W main.c -lm
$ ./a.out
8.000000

So it works for me.  Please provide a testcase showing your problem.

Tks,
Jeff Bailey




Reply to: