Answer the question
In order to leave comments, you need to log in
How to add .lib to cpp project in visual studio 2015?
Hello,
the question is probably hackneyed, but I haven’t been able to get it for an hour,
I did it step by step, as in this guide:
https://msdn.microsoft.com/en-us/library/ms235627.aspx
got it means MathFuncsLib.lib
then created a new project in it the Lib folder copied MathFuncsLib.lib into it,
then I open it:
Project->Properties->C++->General->Additional Include Directories
add the path to the Lib folder
Then Linker/Input/Additional Dependencies and added MathFuncsLib.lib
The step-by-step instructions say that must also be added via Add References
"Before you can use the math routines in the static library, you must reference it. To do this, open the shortcut menu for the MyExecRefsLib project in Solution Explorer, and then choose References."
Clicked on References but is it empty?
The header from the lib #include "MathFuncsLib.h" certainly doesn't see what I'm doing wrong?
Thank you.
UPD: Ok, if you create a new project inside the project as in the instructions from Microsoft, then you get to call functions from a lib, but what if there is only a lib?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question