Windows SDL Shortcut Window

Whenever I run any applications I build with SDL, it opens two windows: the
program window and an empty command prompt window that has the title "shortcut
to " and the name of my program. I’m running the EXE that I built directly, not
a shortcut, so I don’t know why this extra window pops up. How do I get rid of
this extra window?

I’m using MINGW, G++, and Windows XP.

-paul

Nevermind, I found the answer. add -mwindows to the end of the GCC line.

-paul