- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you elaborate this API a little? I can't find it in the reference guide.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.