pycaffe compile error

hello i have success in 6/7 solution building. but at the last one - pycaffe, i got link errors as below: 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyFloat_FromDouble 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyObject_Size 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyInt_FromLong 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyCObject_AsVoidPtr 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyInt_Type 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyString_FromStringAndSize 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyTuple_Type 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyEval_CallFunction 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PySlice_Type 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyExc_AttributeError 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyFloat_Type 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyCObject_Type 2>_caffe.obj : error LNK2001: unresolved external symbol __imp__Py_NoneStruct 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyTuple_GetItem 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyErr_Occurred 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyBool_FromLong 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyImport_ImportModule 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyErr_SetString 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyErr_Print 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyBool_Type 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyObject_IsTrue 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyLong_FromUnsignedLongLong 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyExc_RuntimeError 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyString_Type 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyErr_Format 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyExc_TypeError 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyExc_IndexError 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyObject_GetAttrString 2>_caffe.obj : error LNK2001: unresolved external symbol __imp_PyExc_ImportError 2>../../python/caffe_caffe.pyd : fatal error LNK1120: 29 unresolved externals ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

i have changed "Additional Library Directories" in pycaffe property pages - Linker Dialog to my Python path: C:\Python27\libs. is there any other settings i need to change? Thank you!

该提问来源于开源项目:happynear/caffe-windows

查看全部
weixin_39830020
weixin_39830020
2020/11/28 09:26
  • 点赞
  • 收藏
  • 回答
    私信

7个回复