- Imported boost library at version 1.66.0
- Unchanged from all original files.
- Prebuild libraries not included. (Yes, lack some codes, ex: boost.asio)
- Clone from GitHub: (You can use your favorite git client)
cd ~/Documents/Arduino/libraries/
git clone https://github.com/kekyo/BoostForArduino
- And you can append your compiler toolchain option (At platform.txt) enabling c++11 specification then better results.
- Example: Seeed WioLTE board (On Arduino IDE for Windows)
- Located:
$HOME\AppData\Local\Arduino15\packages\Seeeduino\hardware\Seeed_STM32F4\1.1.2\platform.txt
- Located:
Original line:
compiler.cpp.flags=-c -g -Os -w -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_{build.variant} -D{build.vect} -DERROR_LED_PORT={build.error_led_port} -DERROR_LED_PIN={build.error_led_pin}
To insert '-std=gnu++11' option:
compiler.cpp.flags=-c -g -Os -std=gnu++11 -w -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_{build.variant} -D{build.vect} -DERROR_LED_PORT={build.error_led_port} -DERROR_LED_PIN={build.error_led_pin}
- You can reference boost headers from your sketch.
- You have to rename boost header path separator from "/" to "_".
// Rename path separator.
//#include <boost/function.hpp>
#include <boost_function.hpp>
Enjoy!!
Thank you contributing, the examples directory contains example sources. If you can share your code, please send PR and welcome!
- Boost license, see LICENSE file.
- There're owning license each example code, see the source code header.