I'm using the OpenGL Programming Guide, 8th Edition with MSVC 2013 but I can't get the triangles.cpp file to run.

These are the errors popping up: http://puu.sh/jAokn/c07420cf46.png

Errors from MSVC

  • \$\begingroup\$ Apparently, it can't locate the implementation of your glew, and of your loadshader methods. Did you forget to add a .lib file to your list of library files to include when linking? \$\endgroup\$ – Vaillancourt Aug 13 '15 at 19:36
  • \$\begingroup\$ This is the directory that is on the textbook website: puu.sh/jApbj/7f6e13bf2c.png And I have it set as a Library Directory here: puu.sh/jApPu/93eab42310.jpg \$\endgroup\$ – Cuppasoup Aug 13 '15 at 19:48
  • \$\begingroup\$ Adding the path to where it is located is not sufficient, you actually have to specify the name of the .lib. \$\endgroup\$ – Vaillancourt Aug 13 '15 at 19:49
  • \$\begingroup\$ I have no clue which .lib file to link to \$\endgroup\$ – Cuppasoup Aug 13 '15 at 19:51
  • \$\begingroup\$ It's hard to tell from here... try them all :P Or you might try and find a tool that lists exported methods from libraries... \$\endgroup\$ – Vaillancourt Aug 13 '15 at 19:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.