0

I'm trying to link openGL library's with visual studio 2017. in the linker i included some library's and headers but it gives me the following errors:

    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   

also this one

    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   

and also

    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   

Anyone know how to resolve these linker issues?

genpfault
  • 51,148
  • 11
  • 85
  • 139

0 Answers0