Linker error when using std::string with teensyduino


When just using this simple line of Code, I get an linker error. Am I missing something? Can’t I use std::string in this context?

#include <Arduino.h>
#include <string>

void setup() {
    std::string b = "abc"; //linker error

void loop() {

Output from platformio run:

[Fri Mar 23 11:51:29 2018] Processing teensy36 (platform: teensy; board: teensy36; framework: arduino)
Verbose mode can be enabled via `-v, --verbose` option
PLATFORM: Teensy > Teensy 3.6
SYSTEM: MK66FX1M0 180MHz 256KB RAM (1MB Flash)
Library Dependency Finder ->
Collected 95 compatible libraries
Scanning dependencies...
No dependencies
Compiling .pioenvs/teensy36/src/main.cpp.o
Linking .pioenvs/teensy36/firmware.elf
/home/marc/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/lib/armv7e-m/fpu/libc.a(lib_a-writer.o): In function `_write_r':
writer.c:(.text._write_r+0x12): undefined reference to `_write'
collect2: error: ld returned 1 exit status
*** [.pioenvs/teensy36/firmware.elf] Error 1

My platformio.ini:

platform = teensy
board = teensy36
framework = arduino

Platform information:

teensy ~ Teensy
Teensy is a complete USB-based microcontroller development system, in a very small footprint, capable of implementing many types of projects. All programming is done via the USB port. No special programmer is needed, only a standard USB cable and a PC or Macintosh with a USB port.

Version: 3.0.1
License: Apache-2.0
Frameworks: arduino, mbed


Package toolchain-atmelavr
Type: toolchain
Requirements: ~1.40902.0
Installed: Yes
Version: 1.40902.0
Original version: 4.9.2
Description: avr-gcc

Package framework-arduinoteensy
Type: framework
Requirements: ~1.141.0
Installed: Yes
Version: 1.141.0
Original version: 1.41
Description: Arduino Wiring-based Framework (Teensy Core)

Package tool-teensy
Type: uploader
Requirements: <2
Installed: Yes
Version: 1.141.0
Original version: 1.41
Description: Teensy Loader

Package toolchain-gccarmnoneeabi
Type: toolchain
Requirements: ~1.50401.0
Installed: Yes
Version: 1.50401.0
Original version: 5.4.1
Description: gcc-arm-embedded

Package framework-mbed
Type: framework
Requirements: ~4.50703.0
Installed: No (optional)

ID                    MCU            Frequency  Flash   RAM    Name
teensy35              MK64FX512      120MHz    512KB   192KB  Teensy 3.5
teensy20              ATMEGA32U4     16MHz     31.50KB 2.50KB Teensy 2.0
teensy36              MK66FX1M0      180MHz    1MB     256KB  Teensy 3.6
teensy31              MK20DX256      72MHz     256KB   64KB   Teensy 3.1 / 3.2
teensy30              MK20DX128      48MHz     128KB   16KB   Teensy 3.0
teensylc              MKL26Z64       48MHz     62KB    8KB    Teensy LC
teensy20pp            AT90USB1286    16MHz     127KB   8KB    Teensy++ 2.0

Can anyone explain what’s going on here?