Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 26 May 2013
Offline Last Active Sep 06 2013 11:41 AM

Posts I've Made

In Topic: Learning Visual C++ 2012

28 August 2013 - 08:09 PM

To include a static library to an existing project you need to do the following:
* Add the include path(s) to the library's headers.
* Add the library path to the library itself.

These are done in the project configuration tab.
* Add the library ("foo.lib") to the "Linker - Additional libraries" box

This should in theory be it, but you may run into linker errors if:
* The library in question requires other libraries to be included.
* The library was built in a different configuration than your project (I think this is Windows-only. /MDd or /MD flags needs to be same for both)

There are probably other considerations to be made, that other posters can supply.


So if I were to add foo.lib to my project using that, would I need to move the library to somewhere special? Or could I just do the full path to foo.lib?



You can add the include headers and library path to the VC++ Directories tab in the solution configuration, that way you dont have to provide fulll path to any of the inluded headers or library files.


I like that idea. Do I just edit the library directories field in there? Just out of curiousity, what's the Library WinRT Directories?

In Topic: Setting up DXUT.lib

28 August 2013 - 08:03 PM

Really? Well then, I'll figure out what I need to include then for it all to work. Thanks for the help! :D