0

I have built a dll for libtensorflow, and I now wish to add it to my Visual Studio 2019 C++ project. Can anybody help me do this? If I click Reference->Add Reference I cannot find my dll. I want to add an external item as a link, but whenever I do that VS does not give me the option to add as a link. Any suggestions? Thank you.

SA3709
  • 192
  • 2
  • 11
  • If this is native `c++` you should be linking to an import library `.lib` file and not adding references to a dll. If this is .NET / CLR you have tagged the question wrongly. – drescherjm Nov 25 '19 at 18:14
  • Ok. It is C++. How do I link to an import library? I am new to C++, and have more experience with .NET. – SA3709 Nov 25 '19 at 18:15
  • 1
    [https://stackoverflow.com/questions/4445418/how-to-add-additional-libraries-to-visual-studio-project](https://stackoverflow.com/questions/4445418/how-to-add-additional-libraries-to-visual-studio-project) – drescherjm Nov 25 '19 at 18:16
  • Ok. Thank you. My biggest issue is figuring out how to set up this library so I can use it. I will try something like that instead. – SA3709 Nov 25 '19 at 18:19

1 Answers1

1

So there seems to be a way to do it that involves a workaround including a .lib file. There is a similiar question asked that has been answered here:

Calling functions in a DLL from C++

SA3709
  • 192
  • 2
  • 11