Reference links:
https://blog.csdn.net/clx55555/article/details/98172762
https://zhuanlan.zhihu.com/p/68901339
Precautions:
Generally three is enough, just in case you can add all the lib are:
c10.lib
caffe2.lib
caffe2_detectron_ops.lib
caffe2_module_test_dynamic.lib
clog.lib
cpuinfo.lib
foxi_dummy.lib
foxi_loader.lib
libprotobuf.lib
libprotobuf-lite.lib
libprotoc.lib
onnx.lib
onnx_proto.lib
onnxifi_dummy.lib
onnxifi_loader.lib
torch.lib
There are two places you need to modify:
the first item: Properties -> C / C ++ -> General -> SDL check -> No.
Second: Properties -> C / C ++ -> Language -> symbol pattern -> NO.