https://github.com/maniacbug/StandardCplusplus
Standard C++ for Arduino (port of uClibc++)
https://github.com/maniacbug/StandardCplusplus
Last synced: about 2 months ago
JSON representation
Standard C++ for Arduino (port of uClibc++)
- Host: GitHub
- URL: https://github.com/maniacbug/StandardCplusplus
- Owner: maniacbug
- Created: 2011-12-25T06:16:28.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-11-10T05:54:53.000Z (over 1 year ago)
- Last Synced: 2024-07-31T22:43:53.475Z (9 months ago)
- Language: C++
- Homepage:
- Size: 163 KB
- Stars: 588
- Watchers: 32
- Forks: 182
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Support: support
Awesome Lists containing this project
- Awesome-arduino - StandardCplusplus - Standard C++ for Arduino (port of uClibc++) (Libraries)
- awesome-arduino - StandardCplusplus - Standard C++ for Arduino (port of uClibc++) (Libraries)
README
# Standard C++ for Arduino
## What is this?
This is a straight port of [uClibc++](http://cxx.uclibc.org/) for Arduino.
I have cut nothing out and held nothing back. Use with care!That said, I have used uClibc++'s own internal configuration to pare back
un-needed stuff, like support for floats, gratuitous template
instantiations and other things. See system\_configuration.h for all of
those gory details.Plus I added in [Andy Brown's](http://andybrown.me.uk/ws/2011/01/15/the-standard-template-library-stl-for-avr-with-c-streams/#IDComment246044033)
excellent ohserialstream class for managing the HardwareSerial as an ostream.## How do I install it?
This is installed just like a regular Arduino library. Unpack the contents
of the distribution into the 'libraries' folder under your sketchbook. For
example, my sketchbook is at /home/maniacbug/Source/Arduino, so this
library is in /home/maniacbug/Source/Arduino/libraries/StandardCplusplus .Be sure to reset your Arduino IDE after installing it.
## How do I use it?
You need an extra #include. It has to come before C++ standard library #includes:
```C++
#include
```Otherwise, you will see cryptic messages like this:
fatal error: vector: No such file or directory
## How do I try it out?
From the Arduino IDE, navigate the menus to:
File > Examples > StandardCplusplus > string\_vectorUpload that, set your serial monitor to 57600 baud, and check the output.
## How do I learn more?
The web is your friend. [cplusplus.com](http://cplusplus.com/reference/) is my personal favorite reference.
## Which versions does it work with?
Arduino 1.0 and beyond.
## What is the license?
uClibc++ is LGPL, so this port is also. Andy's file is actually
CC-BY-SA, however he indicated he'd be releasing it using the 3-clause
modified BSD license, so it will be fully compatible with uClibc++.