c - Undefined reference to log10 function -


i building using eclipse kepler, , have included math.h. however, getting error

'undefined reference log10'.

also types uint8_t , unit32_t not being resolved. have included both stdint.h , inttypes.h, sure, wasn't successful. can kindly help?

'undefined reference log10'.

because, header file provides forward declaration of function. actual function definition present in ("math") library. need link math library using -lm.

reference: man page log10

also, afaik, uint<n>_t present in <stdint.h>. please check existence header file and/or typos (like unit32_t in example) in code.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -