[gccsdk] [Bug 187] cairo and chox11 (xlib)

John Tytgat John.Tytgat at aaug.net
Sun Jan 17 06:38:35 PST 2010


In message <E1NWKCI-0001Yb-3k at riscos.info>
          bugzilla-daemon at riscos.info wrote:

> Additionally, I had put an printf before the failure to try and get the size
> out, but it didn't show up unless I also put a puts after all.  This suggests
> there might still be bugs in the stream handling despite John's recent
> improvements.

Note that stdout is by default buffered (when attached to a tty) and gets
flushed when a newline is seen, or when a stream gets read (e.g. scanf)
or when the buffer is full.  So use stderr for debugging or make stdout
unbuffered or always use a newline at the end of your debugging line.

John.
-- 
John Tytgat, in his comfy chair at home                                 BASS
John.Tytgat at aaug.net                             ARM powered, RISC OS driven



More information about the gcc mailing list