Visual c++ doesn´t accept freeGLUT

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.


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.