However, the core libraries do not support the Standard Template Library, which has (in my opinion) indispensable support for generic containers like vector, list, map, and so on.
Well, some kind person did a straight port of the uClibC implementation of STL, and it is available here:
https://github.com/maniacbug/StandardCplusplus
The instructions are pretty clear, but I will summarize:
- Open up your Arduino IDE, go to preferences, and locate your sketchbook (details here: http://www.arduino.cc/en/Guide/Environment). On my Ubuntu 12.04 machine, it is /home/slogan/sketchbook. Chdir to that location and then type:
- Download the StandardCplusplus tarball into the libraries directory you just created, and unpack it with
- Exit arduino IDE if running, then restart.
- Go to File->Examples/StandardCplusplus and select one of the examples, and compile it.
Enjoy.
No comments:
Post a Comment