I have just tried to use Dev-C++ v 4.9.9.2 IDE

GNU GENERAL PUBLIC LICENSE

Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA

When I compiled my first program I received a link error:

[Linker error] undefined reference to `WinMain@16'

How do I clear this error?

You created the wrong kind of project. To create a console project, select menu File --> New --> Project --> then select the Console Application icon.

I have just tried to use Dev-C++ v 4.9.9.2 IDE

GNU GENERAL PUBLIC LICENSE

Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA

When I compile and run my first program as a console project, a window flashes briefly on the screen and disappears. The compile log says compilation was successful and execution terminated.

How to I keep the window (which I suppose is my output window) from disappearing?

This question has already been answered. Start a new discussion instead.