Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to link a static library in Visual C++ 2017?

Tags:

Trying to set up libtins on windows. Im relatively new to Visual studio and most of the documentation on the matter was for older versions. I was able to get the include files set up with the project but linking the .lib's was problematic and i cant seem to configure it properly. The properties menu seems pretty convoluted as im used to doing most things compiler related configurations from a command line.

like image 830
x90x90 Avatar asked Mar 12 '18 01:03

x90x90


1 Answers

In the Solution Explorer, right click on the project, select Properties. Expand to Configuration Properties > Linker > Input. Add the .lib file to Additional Dependencies. Do this for both the Release and Debug configuration.

like image 145
acraig5075 Avatar answered Sep 20 '22 13:09

acraig5075