1) include windows.h
#include <windows.h>
OpenGL FAQ :
Also, note that you'll need to put an#include <windows.h>statement before the#include<GL/gl.h>. Microsoft requires system DLLs to use a specific calling convention that isn't the default calling convention for most Win32 C compilers, so they've annotated the OpenGL calls in gl.h with some macros that expand to nonstandard C syntax. This causes Microsoft's C compilers to use the system calling convention. One of the include files included by windows.h defines the macros.
No comments:
Post a Comment