为什么我的openGL怎么都装不上
我用的是codeblocks,下了各种能找着openGL的库,放在MinGW下,dll也放到system32里去了。但是怎么编译都提示有些函数没有定义。在NeHe的教程里下了一个写的示范程序,也有错误。后来装了VS2010,也一样不能编译。下面是一部分提示的问题程序代码:
C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|44|error: '<anonymous>' has incomplete type| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|44|error: invalid use of 'GLvoid'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|55|error: '<anonymous>' has incomplete type| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|55|error: invalid use of 'GLvoid'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|62|error: '<anonymous>' has incomplete type| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|62|error: invalid use of 'GLvoid'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp||In function 'BOOL CreateGLWindow(char*, int, int, int, bool)':| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|62|error: too few arguments to function 'GLvoid KillGLWindow(<type error>)'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|198|error: at this point in file| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|62|error: too few arguments to function 'GLvoid KillGLWindow(<type error>)'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|227|error: at this point in file| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|62|error: too few arguments to function 'GLvoid KillGLWindow(<type error>)'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|234|error: at this point in file| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|62|error: too few arguments to function 'GLvoid KillGLWindow(<type error>)'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|241|error: at this point in file| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|62|error: too few arguments to function 'GLvoid KillGLWindow(<type error>)'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|248|error: at this point in file| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|62|error: too few arguments to function 'GLvoid KillGLWindow(<type error>)'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|255|error: at this point in file| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|44|error: too few arguments to function 'int InitGL(<type error>)'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|265|error: at this point in file| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|62|error: too few arguments to function 'GLvoid KillGLWindow(<type error>)'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|267|error: at this point in file| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp||In function 'int WinMain(HINSTANCE__*, HINSTANCE__*, CHAR*, int)':| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|351|warning: deprecated conversion from string constant to 'char*'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|55|error: too few arguments to function 'int DrawGLScene(<type error>)'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|381|error: at this point in file| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|62|error: too few arguments to function 'GLvoid KillGLWindow(<type error>)'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|389|error: at this point in file| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|392|warning: deprecated conversion from string constant to 'char*'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|62|error: too few arguments to function 'GLvoid KillGLWindow(<type error>)'| C:\Users\Administrator\Desktop\lesson01\Lesson01\Lesson1.cpp|401|error: at this point in file| ||=== 已完成构建: 28 个错误, 2 个警告 ===|请问怎么解决啊,已经为这个基础的问题头疼好久了,碎了……