Re: Removing console window on Windows



Dear Галымжан Кожаев,

when I start the program the black console window appears. [...] Is there any way to remove this window? [...] I compile it using MinGW [...]

You need to specify the -mwindows option to the linker. The opposite is -mconsole, which is the default for MinGW. See for instance:

http://gcc.gnu.org/onlinedocs/gcc-4.4.1/gcc/i386-and-x86_002d64-Windows-Options.html

That page of the gcc manual is important for multi-threading also, because the default setting for MinGW is not to expect multi-threading.

Mark


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]