我正在使用glu库编写一个程序,但是当我编译时,我得到了这个错误:
1>opengl_3.obj : error LNK2019: unresolved external symbol _gluLookAt@72 referenced in function "public: void __thiscall OpenGLContext::setupScene(void)" (?setupScene@OpenGLContext@@QAEXXZ)我包含了GL/lu.h并检查了lib和dll是否存在。(默认情况下)我使用的是visual studio 2012。
知道这个错误是从哪里来的吗?
发布于 2012-11-27 05:52:48
您没有链接到glu。将glu添加到程序应链接到的库中。更详细的描述可以在here上找到。
https://stackoverflow.com/questions/13573757
复制相似问题