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