|
From: Tor L. <tm...@ik...> - 2010-11-01 15:20:29
|
The same happens also with MSVC6 if you build your program as a console executable, which is the default if it has a main(). You must be using the linker option /subsystem:windows without realizing. (Or then your program has a WinMain() but not a main(), in which case MSVC is "clever" enough to guess you want it to be produce a so-called GUI executable and not a so-called console executable. MinGW does not do this, you need to explicitly specify the -mwindows option to get a "GUI executable".) (Note that the terms "GUI executable" vs. "console executable" are somewhat misleading. It's just a single flag in the executable header. It has no impact on what the program actually can do. There is nothing that forces a GUI executable to actually have a GUI, there is nothing that prevents a console executable from having a GUI, etc.) --tml |