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

3 answers

Sort by: Most helpful
  1. Sid Kraft 46 Reputation points
    2026-07-08T23:17:18.1333333+00:00

    The solution did work for downloading and executing the vcpkg program by bypassing the strict, built in version . However, after the statement #include <GL/gl.h> and did the re-load in visual studio with C++, the loader still gave me the error "could not open the .obj file as specified". I suspect it is because of the additional Configuration Properties-->C/C++ --> General --> Additional Include Directories not pointing to the correct files for the #include and the Configuration Properties -->Linker-->General-->Additional Library Directories also not pointing to the proper locations. From your experience where should these additional directories be pointing? Sid Kraft

    Was this answer helpful?


  2. Nancy Vo (WICLOUD CORPORATION) 7,250 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?


  3. Bruce (SqlWork.com) 84,501 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.