Problem compiling with gcc.

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

 



I'm using gcc to write a small cgi-bin program.  The program is calculate.c and it was compiled using a script

gcc -c calculate.c
gcc calculate.o -o calculate.cgi -L./ -lcgic
chmod 777 calculate.cgi

All was well until I needed to use the pow function.  I used
#include <math.h>
as in the past but when I link I get

calculate.o(.text+0x14bf): In function `cgiMain':
calculate.c: undefined reference to `pow'
 
when I look at math.h there is no reference to pow.  Can anyone help or suggest another forum where I can ask this question?

Thanks in advance,
/Bob Cahn
Gipsy Trail Club
Carmel, NY 10512

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux