Build problem with codeblocks

i have a problem with building, log output:
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../libmingw32.a(main.o):main.c:(.text.startup+0xa7): undefined reference to `WinMain@16'

main.cpp:
#include <GL/glew.h>
#include "display.h"
#include <iostream>

int main(int argc, char** argv)
{
Display m_display(800,600,"Hello");
return 0;
}

Any idea where is problem?
Topic archived. No new replies allowed.