Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Add missing standard library to PlatformIO core for teensy31

  1. #1
    Junior Member
    Join Date
    May 2018
    Posts
    2

    Add missing standard library to PlatformIO core for teensy31

    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.

  2. #2
    Senior Member blackketter's Avatar
    Join Date
    May 2015
    Location
    San Francisco
    Posts
    308
    Quote Originally Posted by ademuri View Post
    P.S. is the PlatformIO board definition available somewhere? I'd try to submit a pull request if it is.
    I think this might be what you are looking for: https://github.com/platformio/platfo...develop/boards

  3. #3
    Junior Member
    Join Date
    May 2018
    Posts
    2
    Yep, that's the one, thanks!

    Created a pull request: https://github.com/platformio/platform-teensy/pull/67

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •