I think you need to type something like: gcc -o hello.exe hello.c -lwin32 -Wl,-subsystem,windows Hope this helps - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help".