CONSOLE and WINDOWS subsystems (GNAT User’s Guide for Native Platforms)

#### 7.4.3 CONSOLE and WINDOWS subsystems ¶

There are two main subsystems under Windows. The `CONSOLE` subsystem (which is the default subsystem) always creates a console when launching the application. This is not something desirable when the application has a Windows GUI. To remove this console, your application must use the `WINDOWS` subsystem. To do so, you must specify the `-mwindows` linker switch.

>     $ gnatmake winprog -largs -mwindows