Configure OpenGL


最近又重装了系统,调程序的时候发现Opengl没有了,就又装了一遍,把整个过程写下来,省得以后忘了。
1. Copy glut32.lib and glut.def to C:\Program Files\Microsoft Platform SDK\Lib
2. Copy glut.h to C:\Program Files\Microsoft Platform SDK\Include\gl
3. Copy glut32.dll to C:\WINDOWS\system
4. Revise glut.h,  otherwise you will meet the error "c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\stdlib.h(251): error C2381: ‘exit’ : redefinition; __declspec(noreturn) differs"
    #if defined(_WIN32)
    # ifndef GLUT_BUILDING_LIB
    /*extern _CRTIMP void __cdecl exit(int);*/
    _CRTIMP __declspec(noreturn) void __cdecl exit(int);
    # endif

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s