Add missing standard library to PlatformIO core for teensy31

ademuri

New member
I ran across the issue solved in this Stack Overflow post. I have a library which has:
Code:
#include <functional>
and uses functionality from it. When compiling against teensy31 using PlatformIO, I get an error about:
Code:
undefined reference to_write
My problem was solved by adding:
Code:
build_flags = -llibc -lc

Could PJRC staff add these flags to the teensy31 PlatformIO board definition? I believe that even with that flag, the linker won't actually include the code unless they're actually used. I spent a couple of hours debugging this before I found the answer, so it'd be nice to fix this if possible.

P.S. is the PlatformIO board definition available somewhere? I'd try to submit a pull request if it is.
 
Back
Top