I am writing not only sketch file but also in C/C++ which I am trying to compile together with core-firmware (from GitHub) and re-flash the device.
I am following the instructions on GitHub (https://github.com/spark/core-firmware) and I am able to build and flash the core as-is (no modification to any source code).
When I started adding custom C/C++ code, I came across a dependency (sys/select.h) which I am not able to find in core-firmware, core-common-lib or the ARM-based gcc tool installation recommended by core-firmware README on GitHub.
Is there an alternative header file for this in the world of Spark? I am using OSX Mavericks and following the README instructions of core-firmware.
If anyone have good resources on how to develop C/C++ libraries for Spark, please, thank you in advance!