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?