7

I'm working on a C++ project using Visual Studio 2015 I'm trying to link an external library (in this instance libtins). The library currently resides on my desktop.

I've tried editing the project settings, under Linker settings, but it doesn't give me any option to include any custom libraries.

How do I do this in VS 2015?

jww
  • 97,681
  • 90
  • 411
  • 885
BugHunterUK
  • 8,346
  • 16
  • 65
  • 121
  • 1
    Possible duplicate of [How to add additional libraries to Visual Studio project?](https://stackoverflow.com/q/4445418/608639) – jww Mar 02 '19 at 06:49
  • 1
    Filed as duplicate 3 years later. Damn! That's some nice moderation. – BugHunterUK Mar 02 '19 at 17:31

1 Answers1

17

adding to the linker is not enough you need also to add the include library: properties -> C/C++ ->general -> additional include directories

Proxytype
  • 712
  • 7
  • 18
  • don't forget to vote – Proxytype Jun 24 '15 at 16:36
  • Need 15 rep. Will answer some questions and come back to vote :) – BugHunterUK Jun 24 '15 at 20:47
  • thanks, you remember to vote! – Proxytype Jun 29 '15 at 21:23
  • Solved it for me as well - just wanted to also add that the folders (for me anyway) weren't searched recursively so its important to link the source folder exactly – davidhood2 Oct 03 '16 at 19:55
  • Hi, I generate a vs project with `qmake -tp vc` from QT with some additional dependencies, but I find no libs names in `Additional Dependencies` of the vs project, but the vs project do run well. Does that mean there is some other methods to add `Additional Dependencies` in vs project? – Summer Sun Sep 19 '17 at 02:03