与vs2017的OpenGL链接问题

时间:2018-03-21 13:28:44

标签: opengl linker

我正在尝试将openGL库与visual studio 2017链接。在链接器中我包含了一些库和标题,但它给了我以下错误:

    Severity    Code    Description Project File    Line    Suppression State
Error   LNK2028 unresolved token (0A000040) "extern "C" void __cdecl gluPerspective(double,double,double,double)" (?gluPerspective@@$$J0YAXNNNN@Z) referenced in function "protected: void __clrcall OpenGLForm::COpenGL::ReSizeGLScene(int,int)" (?ReSizeGLScene@COpenGL@OpenGLForm@@$$FIE$AAMXHH@Z)   Graphical Arduino Windows Controller    C:\Users\dani\Documents\Visual Studio 2017\Projects\Project1\Project1\Viewport.obj  1   

也是这个

    Severity    Code    Description Project File    Line    Suppression State
Error   LNK2019 unresolved external symbol "extern "C" void __cdecl gluPerspective(double,double,double,double)" (?gluPerspective@@$$J0YAXNNNN@Z) referenced in function "protected: void __clrcall OpenGLForm::COpenGL::ReSizeGLScene(int,int)" (?ReSizeGLScene@COpenGL@OpenGLForm@@$$FIE$AAMXHH@Z)    Graphical Arduino Windows Controller    C:\Users\dani\Documents\Visual Studio 2017\Projects\Project1\Project1\Viewport.obj  1   

以及

    Severity    Code    Description Project File    Line    Suppression State
Error   LNK1120 2 unresolved externals  Graphical Arduino Windows Controller    C:\Users\dani\Documents\Visual Studio 2017\Projects\Project1\x64\Debug\Graphical Arduino Windows Controller.exe 1   

任何人都知道如何解决这些链接器问题?

0 个答案:

没有答案
相关问题