Hello
I am not able to build the simplest C++ project, using TorchLib and 32bit Visual Studio 2015.
I downloaded the newest TorchLib library without CUDA support, and built the dependencies using the following cmake code on windows (taken from Pytorch website):
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(test)
find_package(Torch REQUIRED)
add_executable(test-app test.cpp)
target_link_libraries(test-app ${TORCH_LIBRARIES})
set_property(TARGET test-app PROPERTY CXX_STANDARD 11)
Cmake generates without an error. When I try to build a file containing #include “torch/script.h” in VS2015, 21 different LINK errors occur (LINK2001, LINK1120, LINK2019). Errors are always some “unresolved external symbol ‘symbol’ referenced in function ‘…’”. What am I doing wrong? Are there other libraries needed? Wrong VS version?