Issue using <stdlib.h> in CrazyFlie Custom-Deck Driver
Posted: Wed Oct 19, 2016 10:02 am
Hi,
I'm currently writing a custom deck-driver to implement some rudimentary collision-avoidance on CrazyFlie using SiliconRadar's Radar-Sensor PCB v2.
I have already written another deck driver before to drive a prototype of a motion-flow sensor for indoor position hold. I found it very simple to get started with the CrazyFlie VM , and got that first deck-driver quickly implemented. So thanks for that!
Unfortunately, I do now have some issue, which I do not quite understand.
I've created a siliconradar.h and siliconradar.c file, the .h file includes the <stdlib.h>, and the c. files includes the siliconradar.h file...
When I'm trying to parse a hex-value from a string using strol(), I do get a compiler-error, which outputs an implicit declaration of the strol() function.
If I click on <stdlib.h> and select "Open Delclaration" it references to an pretty much empty stdlib.h file:
Maybe you have some idea? I'm not really that used to Eclipse + GCC, so any hint is very appreciated
Thank you!
Florian
I'm currently writing a custom deck-driver to implement some rudimentary collision-avoidance on CrazyFlie using SiliconRadar's Radar-Sensor PCB v2.
I have already written another deck driver before to drive a prototype of a motion-flow sensor for indoor position hold. I found it very simple to get started with the CrazyFlie VM , and got that first deck-driver quickly implemented. So thanks for that!

Unfortunately, I do now have some issue, which I do not quite understand.
I've created a siliconradar.h and siliconradar.c file, the .h file includes the <stdlib.h>, and the c. files includes the siliconradar.h file...
When I'm trying to parse a hex-value from a string using strol(), I do get a compiler-error, which outputs an implicit declaration of the strol() function.
If I click on <stdlib.h> and select "Open Delclaration" it references to an pretty much empty stdlib.h file:
Code: Select all
#ifndef _MACHSTDLIB_H_
#define _MACHSTDLIB_H_
/* place holder so platforms may add stdlib.h extensions */
#endif /*_MACHSTDLIB_H_*/

Thank you!
Florian