Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " This is how you correctly link in visual studio 12:
- The first thing you create is a folder somewhere called "dev" (or really any name). In that folder you extract "freeglut"(only if you want a windowing toolkit) and "glew" (the openGL extension wrangler, this loads the gl functions).
- After that you open a new project in VS12 and rightclick on the project->properties Under VC++ properties click on "Include directories" and add the path to your dev/glew/include folder and your dev/freeglut/include. Make sure your path is 100% correct! Then click on "Library directories" and add these 2 paths: dev/glew/lib and dev/freeglut/lib.
- Then go to C/C++ and click on additional include directories and add these 2 paths:dev/glew/include and dev/freeglut/include. Then go to linker and add the lib folders in "additional library directories" this is a tricky one because you need to link to the correct version: \dev\glew\lib\Release\Win32
- Then try your code again, if that doesn't work, try source code from the internet. Also if you copied the folders without changing there name you should include "GL/glew.h" These steps are required for each project that uses openGL. "
- Anton D in Stack Overflow
- http://stackoverflow.com/questions/18162847/opengl-functions-are-undefined-in-vs2012-express
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement