<div dir="ltr">I didn&#39;t use `-optl-mwindows`. I guess the dependency on SDL is doing this.<div>Anyway, I was trying to print some debug messages to see what was going wrong.</div><div style>Replaces the debugs message with on-screen messages using `SDL-ttf` package.</div>

<div style><br></div><div style>Thanks,</div><div style>Thiago.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/1/26 Henk-Jan van Tuyl <span dir="ltr">&lt;<a href="mailto:hjgtuyl@chello.nl" target="_blank">hjgtuyl@chello.nl</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Sat, 26 Jan 2013 21:52:03 +0100, Brandon Allbery &lt;<a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>&gt; wrote:<br>


<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sat, Jan 26, 2013 at 3:34 PM, Thiago Negri &lt;<a href="mailto:evohunz@gmail.com" target="_blank">evohunz@gmail.com</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;m trying SDL on Windows, and things are getting really weird.<br>
I can compile the code (links on the end).<br>
When I run it, if I try using `stdin` the program crashes with this<br>
message:<br>
<br>
&lt;stdin&gt;: hGetLine: invalid argument (Bad file descriptor)<br>
<br>
</blockquote>
<br>
You haven&#39;t even touched SDL at that point in that source code.<br>
<br>
If I had to guess, something (possibly a linker option embedded in the SDL<br>
binding) is causing your program to be built as a Windows GUI (as opposed<br>
to Windows Console) so it has no stdin.  I couldn&#39;t tell you much more than<br>
that, though; the ways of Windows development are foreign to me.<br>
<br>
</blockquote>
<br></div>
You probably used -optl-mwindows in the compile command, to prevent the DOS-shell appearing behind your window.<br>
<br>
Regards,<br>
Henk-Jan van Tuyl<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
-- <br>
<a href="http://Van.Tuyl.eu/" target="_blank">http://Van.Tuyl.eu/</a><br>
<a href="http://members.chello.nl/hjgtuyl/tourdemonad.html" target="_blank">http://members.chello.nl/<u></u>hjgtuyl/tourdemonad.html</a><br>
Haskell programming<br>
--<br>
</font></span></blockquote></div><br></div>