OpenGL Libraries

Sid Kraft 46 Reputation points
2026-07-06T14:05:45.0566667+00:00

Downloaded the OpenGL files labelled glut-3.7 with sub files glut-3.7\Lib and included them in my Configuration Properties Linker General Additional Library C:\glut-3.7\Lib. When I executed the program, it said that the glut-3.7\Lib program .obj could not be opened? I am assuming, again, that the files that I have downloaded either have not been compiled to produce a .obj file or I am downloading the wrong files. Sure wish that someone knew where to download the proper files, any advice will help, Sid Kraft

Developer technologies | C++
Developer technologies | C++

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Nancy Vo (WICLOUD CORPORATION) 6,675 Reputation points Microsoft External Staff Moderator
    2026-07-07T03:18:58.8633333+00:00

    Hello @Sid Kraft ,

    Thanks for your question.

    I can see you are putting a lot of effort into getting these files linked manually. Dealing with .lib files, .obj files, and folder paths by hand is notoriously tricky in C++.

    Because manual linking is so prone to breaking - especially with older packages like glut-3.7. I highly recommend we go back to the vcpkg method we successfully set up in your previous thread.

    Using vcpkg is the modern, Microsoft-recommended approach because it handles all of this linking automatically behind the scenes.

    Furthermore, I have tested and it works as expected. It will help us save much time.

    Hope this helps. Thank you for your time.

    Was this answer helpful?

    0 comments No comments

  2. Bruce (SqlWork.com) 84,411 Reputation points
    2026-07-06T15:07:45.1966667+00:00

    glut is obsolete and has had no maintenance in over a decade. there is a free glut on GitHub.

    https://github.com/freeglut/freeglut

    yes, you will need to build the library.

    if you just want graphics on windows, you might want to use DirectX. It has more support. you can just install the c++ game development workload, and create projects.

    https://visualstudio.microsoft.com/vs/features/directx-game-dev/

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.