Robert Cahn wrote: > 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 > compile with -lm em.
begin:vcard fn:Emily Brantley n:Brantley;Emily org:Atropine Design adr;dom:;;;Columbus;GA;31904 email;internet:koneko.em@xxxxxxxxx x-mozilla-html:FALSE url:http://atropine.ath.cx/ version:2.1 end:vcard
Attachment:
signature.asc
Description: OpenPGP digital signature