Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Visual c++ doesn´t accept freeGLUT

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2011
    Location
    Santiago, Chile.
    Posts
    1

    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.

    Help?

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Jan 2007
    Posts
    965

    Re: Visual c++ doesn´t accept freeGLUT

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •