View Full Version : Visual c++ doesn´t accept freeGLUT
01-05-2011, 06:23 PM
Every time am adding the freeGLUT lib to the project, visual c++ 2008 Express Edition asks me to do a custom build(?). Am following the OpenGL SuperBible 5th edition examples, specifically am in the chapter 02 triangle example, using Windows Vista, after compiling, it doesn't recognize the glutMainLoop(); function.
01-06-2011, 12:03 PM
You're adding the lib by using Project | Add Existing Item...
That's not how to add a lib. Go to your project properties, then Linker | Input | Additional Dependencies and add it there. Visual C++ should also be told which directory the lib is in, so use Tools | Options | Projects and Solutions | VC++ Directories or project properties | Linker | General | Additional Library Directories.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.