Looking for pow function in C

Ian Lance Taylor ian@wasabisystems.com
Wed Dec 3 18:54:00 GMT 2003


tonibin@libero.it writes:

> /tmp/cctlMXxf.o(.text+0x948): In function `parseString':
> : undefined reference to `pow'

You need to link against the math library by using -lm, as in:
    gcc -o foo foo.o -lm

Ian



More information about the Gcc-help mailing list