Computer Science Canada

Undefined reference to winMain@16

Author:  102jon [ Thu Dec 16, 2010 1:40 pm ]
Post subject:  Undefined reference to winMain@16

Hi, I'm writing a graphics program using GLUT in C++. I am using the Codeblocks IDE with GNU GCC as my compiler. When I try to build and link, i get the following error message:

undefined reference to `WinMain@16'

I have included windows.h, what could the problem be?

Author:  TheGuardian001 [ Thu Dec 16, 2010 2:23 pm ]
Post subject:  Re: Undefined reference to winMain@16

Are you using the "main" method as your entry point, or "WinMain"?
Oh, and what toolchain are you using (GCC, VC++, etc)
Edit: oops, you did list your toolchain. My bad.


: