On Fri, 13 Aug 2010 10:18:22 +0200, Eitan Goldshtrom <[email protected]> wrote:

Hi. I'm working in Windows on an OpenGL application. I finally got
everything working, doing all of my testing through the interpreter.
When I finally compiled and ran the program from an executable for the
first time I noticed that before creating my OpenGL window an empty DOS
prompt popped up. I think I understand why the computer would want to do
that, but I don't know how to make it stop. I've done some OpenGL in C++
and I remember having a similar problem. If I remember correctly the
problem was fixed with a compiler flag. I'm using GHC and I looked
through their compiler flags, but I didn't find anything that looked
like it would deal with this. Anyone have any ideas?

-Eitan

You can do this with the flag -optl-mwindows; this passes the flag -mwindows to the linker. Because this is a linker option, you cannot find it in the GHC documentation. This solution also works for other GUIs, like wxHaskell.

Regards,
Henk-Jan van Tuyl


--
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
--
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to