I compiled a program using MinGW g++. When I run it, it opens a console window in addition to the main application window. What\'s the compiler flag to stop this?
I just add -mwindows to linker flags.
-mwindows