I installed the Libtorrent library with vcpkg. I am tring to consume it from a c++ project in VS 2022.
All the Headers are available when I use "#include <libtorrent/any header file>" without showing any errors.
But when I build the project it gives me errors: error LNK2001: unresolved external symbol, one for each function from libtorrent that I call... I assume the .lib file is not linking correctly.
What I have tried:
- Make sure my project is the correct architecture (x64).
- Properties -> C/C++ -> General -> Additional Include Library "path to include folder".
- Properties -> Linker -> Input -> Additional Dependencies "path to .lib file".
Please see extra notes below: "path to include folder" = C:\Users\27815\vcpkg\installed\x64-windows\include "path to .lib file" = C:\Users\27815\vcpkg\installed\x64-windows\lib\torrent-rasterbar.lib
Please advice what I should do/test.