在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

This entry was posted in Program and tagged , , . Bookmark the permalink.

发表评论

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

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please copy the string MiRPrk to the field below:

以新浪微博帐号登录