Using <complex>?

I’m trying to use complex numbers ( std::complex<float> ) in my program, so I #include <complex> . This seems to almost work, but fails at link time with some errors about string-like stuff, seemingly because <complex> also pulls in <sstream>, which bloats the compiled binary to be too big for my poor microcontroller.

I would expect that, since minimal-printf is included by default, that this string formatting would also be removed by default. Is this user error or is this complex library broken in ArmC6? Is there a better way to resolve this than editing the standard library?

I’m using mbed-os 6.70 with the ARM toolchain.