Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » undefined reference to `WinMain@16'

This thread is locked; no one can reply to it. rss feed Print
undefined reference to `WinMain@16'
Gnatinator
Member #2,330
May 2002
avatar

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
Member #1,493
September 2001
avatar

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

--
There are no stupid questions, but there are a lot of inquisitive idiots.

LoHoL
Member #1,752
December 2001
avatar

like that :

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

---
Lohol

Gnatinator
Member #2,330
May 2002
avatar

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

Go to: