Loading the library

Download the archive with the files required libraries to make their connection. It is advisable to download need for writing software code files from the official websites of developers. To connect OpenGL, you can go to GLUT (The OpenGL Utility Toolkit, allowing you to develop applications by using the graphics technology) and download the latest version of the project with resource creators. Extract the resulting archive to a separate folder. Before installation it is advisable to read the instructions for use of the library, which can also be in the archive or to be available on the official website.


Copy the DLL file in the directory "start" - "My computer" - Local disk C: - Windows – System32. So, in the archives of the OpenGL library provides two document glut.dll and glut32.dll that needs to be moved to this directory.

Move the documents that have the extension .h to the folder where you have installed Visual Studio. Most often the program located in the directory "Local disk C: - Program Files – Microsoft Visual Studio – VC – Include (or Lib, depending on the version of Visual Studio). After that, open your project and right click in the Central part of the application, then select Properties. Switch position Configuration in All Configurations, changing the Active parameter(Debug).

Navigate to Linker – Input and select Additional Dependencies. Enter the names of the files that were copied to the directory with LIB extension (e.g., opengl32.lib) and click OK to apply the settings, and then Apply in previous window settings. Connecting libraries to the Microsoft Visual Studio is finished and can be used for writing code.

Some libraries are available as ready-extracting solutions, which can significantly speed up the process of writing code. If the library is available in this format, the installation will be much easier. You only have to unzip the package software solutions and run the script with the extension. SLN in Visual Studio 2010 or 2012. After that, go to the Source tab.c and start writing your own code. To compile and run the current new project, click on the F5, as in the case of self-generated projects.