Sign in to follow this  
Katianie

Setting up Lesson 1

Recommended Posts

Katianie    100
Ok I admit im a noob at OpenGL but Im having trouble on how exactly to include the OpenGL.lib and the other .lib files in Visual C++ 2008.

Share this post


Link to post
Share on other sites
michaweyel    128
Right-click the project in the solution-explorer (this is by default (iirc) the the window on the far right). Go to Properties->Linker->General and enter the directories under which you have your opengl libs in "Additional linker directories".

Then go to Linker->Input and enter the lib filenames (including the ".lib" extension) in "Additional dependencies".

(I am working with the german version of VS 2005, but I am pretty sure its the same in 2008 and I hope my translations are right :) )

Share this post


Link to post
Share on other sites
Katianie    100
but do I have to download the librarys or are they alredy on windows? Also how can i find the directories for where they are if they alredy are on windows?

Share this post


Link to post
Share on other sites
Nanoha    2682
Quote:
Original post by Katianie
but do I have to download the librarys or are they alredy on windows? Also how can i find the directories for where they are if they alredy are on windows?


It should really all besetup, the only thing you should need to do is link in the libs.

Solution -> Properties -> Linker -> Input, Add on Additional dependancies the libs you want.

Share this post


Link to post
Share on other sites
michaweyel    128
Nope. In the row "Additional Library Directories", you specify the directories where the linker is to look for .lib files.

The files themselves (so OpenGl32.lib, Glu.lib, GLaux.lib) you need to add to "Additional dependencies" under Linker->Input in the project properties

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this