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
Post a Comment