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