<div dir="ltr">On Sat, Jan 26, 2013 at 3:34 PM, Thiago Negri <span dir="ltr">&lt;<a href="mailto:evohunz@gmail.com" target="_blank">evohunz@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I&#39;m trying SDL on Windows, and things are getting really weird.<div>I can compile the code (links on the end).</div><div>When I run it, if I try using `stdin` the program crashes with this message: </div>


<div><br></div><div>&lt;stdin&gt;: hGetLine: invalid argument (Bad file descriptor)</div></div></blockquote><div><br></div><div>You haven&#39;t even touched SDL at that point in that source code.</div><div><br></div><div>
If I had to guess, something (possibly a linker option embedded in the SDL binding) is causing your program to be built as a Windows GUI (as opposed to Windows Console) so it has no stdin.  I couldn&#39;t tell you much more than that, though; the ways of Windows development are foreign to me.</div>
<div><br></div></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</div>