Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Compile errors when including boost/function.hpp #2

Open
MadLittleMods opened this issue Feb 19, 2015 · 1 comment
Open

Compile errors when including boost/function.hpp #2

MadLittleMods opened this issue Feb 19, 2015 · 1 comment
Assignees

Comments

@MadLittleMods
Copy link

Running the barebones snippet below results in a huge list of compile errors(available as a pastebin)

I am wanting to eventually run a basic setup like this.

I am running on Arduino 1.0.6 and Teensyduino 1.20 which is an add-on for the Teensy boards (using Teensy 3.1)

#include <StandardCplusplus.h>
#include <boost_1_51_0.h>
#include <boost/function.hpp>

void setup() {
}

void loop() {
}
@rpavlik rpavlik self-assigned this Feb 19, 2015
@MadLittleMods
Copy link
Author

I tried using STLPort instead of the StandardCplusplus dependency and got it down to fewer errors(available as a pastebin) with these changes to work on the ARM Teensy 3.1. Note: I am not certain that these modifications to STLPort are correct.

In stlport/stl/config/_system.h:
Add at around line 195 (copied from avr case:

#elif defined(__arm__)
#  include <stl/config/_avr.h>
#  ifdef __GNUC__
#    include <stl/config/_gcc.h>
#  endif
#  undef _STLP_USE_NEW_C_HEADERS

In stlport/stl/config/features.h:
Add the following next to the avr case at around line 165 so it uses little endian:

|| defined (__arm__)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants