I'm using BVLC Caffe on the Windows branch, which is currently unsupported.
When I try to compile pycaffe in debug mode on Visual Studio 2013 I get the errors
_caffe.obj : error LNK2019: unresolved external symbol __imp__Py_NegativeRefcount referenced in function _import_array
_caffe.obj : error LNK2019: unresolved external symbol __imp__Py_Dealloc referenced in function _import_array
_caffe.obj : error LNK2001: unresolved external symbol __imp__Py_RefTotal
However, pycaffe compiles in Release mode fine. I'm using Python 2.7.12 :: Anaconda 4.1.1 (64-bit) and I have added a python27_d.lib to the libs directory.
This not a duplicate of another question because:
The symbols are resolved in the Release mode but not the Debug mode. (https://stackoverflow.com/a/12573818/1637126)
The symbols are not virtual (https://stackoverflow.com/a/12574407/1637126)
The symbols are declared and defined in release mode (What is an undefined reference/unresolved external symbol error and how do I fix it?)
The Python27.lib and Python27_d.lib libraries exist and are in the same directory. (https://stackoverflow.com/a/12574400/1637126)
Both the Release and Debug libraries are linked in the same order. (https://stackoverflow.com/a/24675715/1637126)
The symbols are in C++ and moreover work in Release mode but not Debug mode (https://stackoverflow.com/a/12574420/1637126)
Recompiling and restarting doesn't work. (https://stackoverflow.com/a/20358542/1637126)
The Release and Debug modes of the Python libraries, although named differently are in fact copies of each other. So what works for one should work for the other. (https://stackoverflow.com/a/12574423/1637126)
They are not template classes. (https://stackoverflow.com/a/26233563/1637126)