我已经快两年没有碰OpenGL,现在回来编写时,出现了一个应该比较普遍的问题。
按照之前的回忆,我把glut32.dll和glut.dll放入system32文件夹。把glut.lib和glut32.lib放入Microsoft Visual Studio 8\VC\PlatformSDK\Lib文件夹。把glut.h放入C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include。总共5个文件。然后下了一段简单的代码。
第一个问题,因为已经有编译好的EXE文件,我双击打开。报错:
Entry Point Not Found
The procedure entry point __glutInitWithExit could not be located in the dynamic link library glut32.dll.