Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Setting up Lesson 1


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 Katianie   Members   -  Reputation: 100

Like
0Likes
Like

Posted 19 May 2010 - 07:45 PM

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.

Sponsor:

#2 michaweyel   Members   -  Reputation: 128

Like
0Likes
Like

Posted 19 May 2010 - 08:22 PM

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 :) )

#3 Katianie   Members   -  Reputation: 100

Like
0Likes
Like

Posted 20 May 2010 - 06:26 AM

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?

#4 Nanoha   Members   -  Reputation: 300

Like
0Likes
Like

Posted 20 May 2010 - 06:34 AM

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.

#5 Katianie   Members   -  Reputation: 100

Like
0Likes
Like

Posted 20 May 2010 - 10:03 AM

So for "Additional Library Directories" I just put OpenGL32.lib; GLu32.lib; GLaux.lib. Is this correct?

#6 michaweyel   Members   -  Reputation: 128

Like
0Likes
Like

Posted 20 May 2010 - 08:51 PM

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

#7 Katianie   Members   -  Reputation: 100

Like
0Likes
Like

Posted 21 May 2010 - 08:28 AM

How do I know what directory those .lib files are under togh?




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS