[gccsdk] std::stringstream with GCCSDK

Lee Noar lee.noar at sky.com
Sun Feb 28 03:46:21 PST 2021

On 21/02/2021 23:56, Daryl Dudey wrote:
> I'm writing a fairly big C++ BASIC style language for Windows & RISC OS and I'm trying to cross-compile on Windows and I can't get the std::stringstream to not give errors. I had problems with ostream before and switched to use regular C I/O functions to get around it.
> I get various errors including deleted functions errors. I can post the output if useful.
> If I replace it with just std::string or fprintf then it all works, but a lot of the code is in 3rd party library stuff I daren't risk changing.
> Is there anything I can try or do?
> Thanks,
> Daryl.

Hi Daryl,

Can you post a reduced example that show the errors that you are seeing?

I'm surprised that you had trouble with ostream as that is paired up
with the compiler and so its features are matched to what the compiler
is capable of (rather than 3rd party libraries which may have higher
expectations from the compiler).

Deleted function errors usually indicate that you're trying to use an
object in a way that isn't allowed, for example, trying to copy an
object when the copy constructor has been deleted. The nature of C++
means you can be copying an object without even realising it, for
example, by passing an object to a function by value instead of by


More information about the gcc mailing list