Question:
How do I add library modules in Visual C++ 2010?
2010-12-18 13:46:39 UTC
I am trying to start the Nehe OpenGL tutorials. The first thing it says to do is create a new Win32 project and add two libraries by going to Project->Settings->LINK tab->Object/Library Modules. The problem is that I go to Project.....and there is no "Settings". There is a "Properties" which I have looked through, but don't see anything about adding library modules. The lesson was made a long time ago so I'm assuming its just outdated. Can anyone tell me how I can do this so I can start learning these lessons? Any help is appreciated.
Three answers:
mkzx
2010-12-18 14:00:20 UTC
Yeah the Nehe tutorials are excellent apparently (and still relevant) but the examples are based on VS6 I believe... Still not a problem - you're on the right track:



(Note I'm using VS2008, but I'd be surprised if VS2010 is different)



go to:

Project->Properties (or right click your project in the solution explorer on the left, and click 'properties').



Note the configuration at the top, it'll be something like 'Debug' or 'Release'. You'll need to repeat these steps for every configuration you're planning on using (I only bother with these two generally)



In the left hand pane, click 'linker' and then the sub choice 'Input'



In the main pane you should see 'Additional Dependencies'. Just add your .lib files here.



Um, just a though, but I'm sure visual studio automatically links OpenGL libs? This might only be the professional addition though...



Hope that helps.
?
2016-06-03 03:04:24 UTC
The C++ standard library doesn't include support for multimedia. If you want to work with multimedia, you'll need to use an additional library like SFML or SDL.
Gardner
2010-12-18 13:53:23 UTC
Do you see References? That's where you would add it.



Additional Information:



If it's a project your built yourself, add a reference to that project. If you're trying to reference a DLL someone else wrote, then you'll have to browse for it on your computer, click on the file to add the reference.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...