math.h

From: Ronny Iversen (ronnyi@ifi.uio.no)
Date: 11/29/98


#include <stdio.h>
#include <math.h>
/*test.c*/

void main(void) {
  sprintf("%ld\n", pow(2,2));
}

When I compile this with gcc test.c I get the following errors, anybody knows
whats wrong?
Im using redhat 5.1
/tmp/cca136931.o: In function `main':
/tmp/cca136931.o(.text+0x12): undefined reference to `pow'

Noc :)


--
--------------- Codito, ergo sum - "I code, therefore I am" --------------------

http://birk113.studby.uio.no                                   ronnyi@ifi.uio.no

---------------- In a world without fences, who need gates? --------------------


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST