Re: Looking for pow function in C

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

 



tonibin@xxxxxxxxx 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux