This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

dtostrf() function not defined

Hello,

i want to use the dtostrf() function of stdlib.h in uvision4, because my sprintf() function of stdio.h make some mistakes by convert a float value in a string. Instead of the decimal point, value 0x20 will be set! The dtostrf() function are not located in the default library, libc.a, but in the mathematical library, libm.a. So when linking the application, the -lm option needs to be specified.

How can i include this library under uvision4?
Or how can i get this function under uvision4?

Thanks for the replies!

Seb V.

0