Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7618399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:23:39+00:00 2026-05-31T03:23:39+00:00

I am using Windows 7 and Visual Studio 2010 express. What is the bare

  • 0

I am using Windows 7 and Visual Studio 2010 express. What is the bare minimum of headers and libs that I need to include in a OpenGL project for it to be able to compile without any errors. And I talk about the minimum, without any additional libs like GLUT or GLFW or GLEW etc.

I thought that all I need to do is to add opengl32.lib in additional dependencies, but it looks like it’s not working, because VC can’t recognize some of the openGL syntax like “glGenBuffers()”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:23:40+00:00Added an answer on May 31, 2026 at 3:23 am

    The function prototypes declared inside <GL/GL.h> on windows systems are only for OpenGL versions up to 1.1 (which is about 20 years old now). Every function for extensions or versions higher than that, like glGenBuffers (which came with 1.5), has to be loaded dynamically using wglGetProcAddress to retrieve a pointer to the function (if the version/extension is supported by your hardware and driver, of course).

    As this can be tedious work, there are libraries for automatic extension management, like GLEW, which do all this for you and present you with the needed function pointers in corresponding variables, so that you can directly use glGenBuffers and the like as ordinary functions, but they are not declared anywhere in <GL/GL.h>.

    So no, you don’t need anything else than link against opengl32.lib to successfully compile an OpenGL project in VS2010, but you either need to manage extensions yourself whenever you need functionality higher than version 1.1 or use a third party library that does that for you, like GLEW.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using C# windows Forms in visual studio 2010. I need to know
I have created a simple Visual Studio Express 2010 C++ project using GLUT and
I am using express edition visual studio 2010 for windows phone 7 , 7.1
I'm making an app for windows phone 7 (using Visual Studio 2010 Express for
I'm running Windows 7 Ultimate (64 bit) using Visual Studio 2010 RC. I recently
I am creating windows installer project using Visual Studio 2005. Is there an option
I'm using Windows Vista and Visual Studio 2010. Create a .Net 4 Windows Forms
In C#, .NET 2.0, Windows Forms, Visual Studio Express 2010, I'm saving an image
I'm working with winforms on Windows 7, using C# in Visual Studio 2010. Currently
I'm using 64 bit Windows 7 Pro and Visual Studio 2010 Pro. I'm trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.