views:

35

answers:

1

I'm trying to learn OpenGL ES with the "OpenGL ES Training Course" (An OpenGL ES tutorial). I use OPENGL-ES 1.1 WINDOWS PC EMULATION with visual studio 2010. I'm trying to compile the 'hello triangle' program and get an error:

'WinMain': function cannot be overloaded

EDIT: I have only one definition of WinMain in the project: The one in the 'hello triangle' source code (which I didn't write).

Could anyone tell me what's going on?

+1  A: 

It sounds like you have two definitions of WinMain, or perhaps a prototype and a definition that disagree.

Jerry Coffin
Thanks, but I have one wiWinMain definition (edited my question). What do you mean by 'a prototype and a definition that disagree'?
snakile