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.

What compiler do you use Ancient Dragon?:?:

Dev-C++ and Microsoft VC++ 6.0 (rarly any more) and VC++ 2005 Express.

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?

try adding a cin.get to the end?

Sysem pause is a bad way of doing it as it doesnt work on non-windows systems

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.