在VC下使用glut

在linux下开发的程序,想给在WIN下的人看看。
http://www.comp.rgu.ac.uk/staff/kz/opengl/glutguide.html
下载文件:
http://www.comp.rgu.ac.uk/staff/kz/opengl/glut/glut.zip

This package includes:
glut.h
glut32.lib
glut.lib
glut32.dll
glut.dll

These files are specifically for Visual C++. Borland provides a transfer tool that has the ability to transfer VC library files to Borland library files.

You can setup GLUT for Borland C++ Builder by following these steps:

* Copy glut.h to c:\Program Files\Borland\CBuilder5\include\GL
* Copy glut.dll and glut32.dll to c:\windows\system.
* Go to a DOS prompt and type the following:

implib glut.lib c:\windows\system\glut.dll
implib glut32.lib c:\windows\system\glut32.dll

* When building your program, Borland may give you a error that says a library file called winmm.lib is missing. If it occurs, you need to generate winmm.lib file by yourself.

For windows XP user, a dynamic link library file called winmm.dll should be in the directory c:\windows\system32\winmm.dll

Go to Program Files\Borland\CBuilder5\lib, and type the following:

implib winmm.lib c:\windows\system32\winmm.dll

For windows 9X user, the file winmm.dll is in the directory c:\windows\system

Go to Program Files\Borland\CBuilder5\lib, and type the following:

implib winmm.lib c:\windows\system\winmm.dll


已发布

分类

来自

标签:

评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注