tags:

views:

44

answers:

2

hello, can somebody please explain what does this warning mean undefined reference to 'WinMain@16' thanks in advance

A: 

Google has lots of references to that particular error. You need to provide a WinMain function, depending on what type of project you are building (console or Windows app).

Martin Wickman
A: 

Quick google search shows:

http://bytes.com/topic/c/answers/164498-linker-error-undefined-reference-winmain-16-a

Banfa - Site Moderator

WinMain replaces main as the entry point for Windows Applications so either you were trying to right [sic] a Windows application and left out WinMain or you wern't trying to write a Windows application and (hopefully) have a main but have compile/link with flags that tell the compiler/linker that this is a Windows application and probably linked with some of the Windows system libraries.

Bert F