OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio


Welcome Guest ( Log In | Register )

> Another C++ Issue
post Nov 21 2007, 04:28 PM
Post #1

Group: Members
Posts: 2,342
Joined: 30-July 06
Member No.: 10,575

I'm getting an error:

terminate called after throwing an instance of 'std::ios_base::failure'
    what():  basic_ios::clear

With my latest C++/SDL app. What causes this, and what can I do about it? It works fine on my laptop, but when I try to run it on my Z, I got the above error.

Any help would be much appreciated.
Go to the top of the page
+Quote Post
Start new topic
post Nov 22 2007, 01:05 AM
Post #2

Group: Members
Posts: 370
Joined: 25-February 04
From: UK
Member No.: 2,025

I don't know so much about exception processing or lowlevel ios stuff, so this is a bit of a guess.

The code is clearing a stream and setting some flags; the flags being set aren't supported by the Z C++ RTL. I would grep the code for "clear(" and look for an iostream. You'll need to change the parameters to clear(), probably some weird default that doesn't really matter or something new that isn't supported by the Z RTL.

Don't know about the what(); maybe it's the what() function that is calling clear() ? Another thing to grep for.
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 26th May 2018 - 09:25 AM