BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
34.01k stars 18.71k forks source link

Creating problem __declspec(dllimport) struct _object * __cdecl boost::python::detail::init_modul e #6880

Open Michaelyangyu opened 4 years ago

Michaelyangyu commented 4 years ago

hello!I have met this problem for 3 days,I hope someone can help me solve it!

                                                                                                                           Thanks a lot!

Issue summary

正在创建库 E:/caffe-windows/build/lib/Release/_caffe.lib 和对象 E:/caffe-windows/build/lib/Release/_caffe.exp _caffe.obj : error LNK2019: 无法解析的外部符号 "declspec(dllimport) struct _object * __cdecl boost::python::detail::init_modul e(struct PyModuleDef &,void (cdecl*)(void))" (_imp?init_module@detail@python@boost@@YAPEAU_object@@AEAUPyModuleDef@ @P6AXXZ@Z),该符号在函数 PyInit__caffe 中被引用 [E:\caffe-windows\build\python\pycaffe.vcxproj] E:\caffe-windows\build\lib\Release_caffe.pyd : fatal error LNK1120: 1 个无法解析的外部命令 [E:\caffe-windows\build\python\pycaff e.vcxproj]

Steps to reproduce

Tried solutions

System configuration

Issue checklist