maniacbug / StandardCplusplus

Standard C++ for Arduino (port of uClibc++)
588 stars 182 forks source link

Fix up errors with avr-gcc >= 5 regarding C++14 traits behavior #20

Closed amotl closed 1 year ago

amotl commented 8 years ago

Hi there,

thanks for porting uClibc++ to Arduino, we are using it at the Hiveeyes project. Cheers! Yesterday, we experienced errors when trying to compile with avr-gcc 5.3.

We found the commit istream, ostream: Fix building with g++ >= 5 at the upstream uClibc++ library and backported it to StandardCplusplus. This mitigated the problem using the -std=gnu++14 compiler flag with avr-gcc => 5 and still compiles on avr-gcc 4.9 using -std=gnu++11.

With kind regards, Andreas.

mike-matera commented 7 years ago

This project seems to be dead. I've recreated this effort in a ArduinoSTL. It's available in the Arduino library manager.

amotl commented 7 years ago

Thanks Mike, we will have a look when touching our repository the next time. If everything works well out of the box, we will migrate to ArduinoSTL, otherwise we might come up with questions. Good to hear you are currently active on maintaining your variant of the Arduino STL port.

In a lucky coincidence, we plan to streamline the sensor reading code of https://github.com/hiveeyes/arduino/tree/master/node-gprs-http over the course of the next two days by using STL maps instead of manually aggregating data in character array buffers. When we get the chance, we might try doing it with ArduinoSTL right away.