this problem has nothing to do with opengl itself. i would guess you are compiling under windows and you did copy and paste some windows application code into a console application project. instead of the main function a winmain function is needed for windows application. this one could not be found => linking error.
if you are using visual studio, change linker/system/subsystem settings in the project property page to “Windows”. if nothing helps, try to get some project files from nehe.
disable precompiled headers in the project settings or add the line #include “stdafx.h”
which has the needed defines and stuff. personally i dont like precompiled headers.
you can enter the error number into .net’s help prompt and read what causes the problem and how to solve it.
enter: “C1010”