undefined reference to `WinMain@16'
Gnatinator

I am using Dev-C++ with allegro. This linker error message comes up: (undefined reference to `WinMain@16'). This has come up before in many programs. What does it mean? Where did it come from? What does it want? ??? I imagine though it being a 'undefined reference to' linker message, it is probably something to do with the libraries.
Please help me out.:-/

spellcaster

Do you have an END_OF_MAIN(); at the end of your main() ?
If not, this might be the problem.

LoHoL

like that :

int main()
{
//blabla
}
END_OF_MAIN()

Gnatinator

Awww crud that was the problem. Sorry you guys for posting about a newbies error. Hmmm, well.. I guess it happens.::)

Thread #195142. Printed from Allegro.cc