Pelles C forum

C language => Beginner questions => Topic started by: freevryheid on January 22, 2009, 02:02:30 AM

Title: main or wmain
Post by: freevryheid on January 22, 2009, 02:02:30 AM
Hi - a Pelles C newbie question:

I have a win32 console openGL app that links SDL.
I get the following error when trying to build the app:
POLINK: error: Unresolved external symbol '_main'.

This is fixed by changing this:
int main(int argc, char **argv)
to this:
int wmain(int argc, char **argv)

Any particular reason for this?