cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Bluetooth

huangj
Contributor

Hi,

I would like use the API(strtof) on my code. But I got a error message(undefined reference to `strtof') after building my code.

I include the header file(stblib.h) in my code, but the error message is still there.Should I need to modify the makefile? Or strof didn't in the ROM?

Jack,

0 Likes
1 Solution
BoonT_56
Employee

I checked internally and found that our solution does not support floating point types. And you are right, not all of the standard library is included in the ROM.

View solution in original post

3 Replies
BoonT_56
Employee

Can you elaborate this API a little? I can't find it in the reference guide.

0 Likes
huangj
Contributor

Hi boont,

The strtof converts string to float.

Example:

char *a;

float b = stortof("12.345",&a);

The API is define in the stblib.h(WICED-Smart-SDK\Tools\ARM_GNU\include).

Jack,

0 Likes
BoonT_56
Employee

I checked internally and found that our solution does not support floating point types. And you are right, not all of the standard library is included in the ROM.

View solution in original post