boostorg / boostorg/python

MSVC 14.0: Missing Symbols in Numpy Debug Library

Đang mở
#138 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
build logic Windows
Ngôn ngữ chính
C++
Star
537
Fork
223
Merge trung bình
11 giờ 22 phút
Pull request đã merge (30 ngày)
2

Mô tả

Hi,

I'm having trouble with my debug build of Boost.Numpy. Everything works fine linking against the release version, but in debug mode, I get the following errors:

Searching libraries
Searching C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64\kernel32.lib:
Searching C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64\user32.lib:
Searching C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64\gdi32.lib:
Searching C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64\winspool.lib:
Searching C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64\comdlg32.lib:
Searching C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64\advapi32.lib:
Searching C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64\shell32.lib:
Searching C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64\ole32.lib:
Searching C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64\oleaut32.lib:
Searching C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64\uuid.lib:
Searching C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64\odbc32.lib:
Searching C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64\odbccp32.lib:
Searching C:\Users\rschweizer\Perforce\RS_Work\Dev\SRC\lib\std\Win64D\DataLibD.lib:
Searching C:\Users\rschweizer\Perforce\RS_Work\Dev\SRC\lib\std\Win64D\DBaseD.lib:
Searching C:\Users\rschweizer\Perforce\RS_Work\Dev\SRC\lib\std\Win64D\NraiD.lib:
Searching C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\amd64\msvcprtd.lib:
Searching C:\Users\rschweizer\Perforce\RS_Work\Dev\SRC\..\SRC-External\python-3.6.0\lib\Win64D\python36_d.lib:
Searching C:\Users\rschweizer\Perforce\RS_Work\Dev\SRC\..\SRC-External\boost_1_65_0-snapshot\lib\Win64\libboost_python3-vc140-mt-gd-1_65.lib:
Searching C:\Users\rschweizer\Perforce\RS_Work\Dev\SRC\..\SRC-External\boost_1_65_0-snapshot\lib\Win64\libboost_numpy3-vc140-mt-gd-1_65.lib:
Searching C:\Users\rschweizer\Perforce\RS_Work\Dev\SRC\..\SRC-External\boost_1_65_0-snapshot\lib\Win64\boost_numpy3-vc140-mt-gd-1_65.lib:
Searching C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\amd64\MSVCRTD.lib:
Searching C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\amd64\OLDNAMES.lib:
Searching C:\Users\rschweizer\Perforce\RS_Work\Dev\SRC\..\SRC-External\python-3.6.0\lib\Win64D\python36.lib:
Searching C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\amd64\vcruntimed.lib:
Searching C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64\ucrtd.lib:

Finished searching libraries
converters.obj : warning LNK4217: locally defined symbol ??1dtype@numpy@python@boost@@QEAA@XZ (public: __cdecl boost::python::numpy::dtype::~dtype(void)) imported in function "struct _object * __cdecl nrai_wrapper::c_array_to_ndarray_nocopy(char const *,unsigned __int64)" (??$c_array_to_ndarray_nocopy@D@nrai_wrapper@@YAPEAU_object@@PEBD_K@Z)
NraiWrapper.obj : warning LNK4217: locally defined symbol ?initialize@numpy@python@boost@@YAX_N@Z (void __cdecl boost::python::numpy::initialize(bool)) imported in function "void __cdecl nrai_wrapper::init_module_NraiWrapper(void)" (?init_module_NraiWrapper@nrai_wrapper@@YAXXZ)
converters.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: char * __cdecl boost::python::numpy::ndarray::get_data(void)const " (__imp_?get_data@ndarray@numpy@python@boost@@QEBAPEADXZ) referenced in function "public: static struct _object * __cdecl nrai_wrapper::std_numeric_vector_to_ndarray::convert(class std::vector > const &)" (?convert@?$std_numeric_vector_to_ndarray@I@nrai_wrapper@@SAPEAU_object@@AEBV?$vector@IV?$allocator@I@std@@@std@@@Z)
converters.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl boost::python::numpy::ndarray::~ndarray(void)" (__imp_??1ndarray@numpy@python@boost@@QEAA@XZ) referenced in function "struct _object * __cdecl nrai_wrapper::c_array_to_ndarray_nocopy(char const *,unsigned __int64)" (??$c_array_to_ndarray_nocopy@D@nrai_wrapper@@YAPEAU_object@@PEBD_K@Z)
converters.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class boost::python::numpy::ndarray __cdecl boost::python::numpy::empty(class boost::python::tuple const &,class boost::python::numpy::dtype const &)" (__imp_?empty@numpy@python@boost@@YA?AVndarray@123@AEBVtuple@23@AEBVdtype@123@@Z) referenced in function "public: static struct _object * __cdecl nrai_wrapper::std_numeric_vector_to_ndarray::convert(class std::vector > const &)" (?convert@?$std_numeric_vector_to_ndarray@I@nrai_wrapper@@SAPEAU_object@@AEBV?$vector@IV?$allocator@I@std@@@std@@@Z)
converters.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class boost::python::numpy::ndarray __cdecl boost::python::numpy::detail::from_data_impl(void *,class boost::python::numpy::dtype const &,class boost::python::api::object const &,class boost::python::api::object const &,class boost::python::api::object const &,bool)" (__imp_?from_data_impl@detail@numpy@python@boost@@YA?AVndarray@234@PEAXAEBVdtype@234@AEBVobject@api@34@22_N@Z) referenced in function "class boost::python::numpy::ndarray __cdecl boost::python::numpy::from_data(void const *,class boost::python::numpy::dtype const &,class boost::python::tuple,class boost::python::tuple,class boost::python::api::object const &)" (??$from_data@Vtuple@python@boost@@@numpy@python@boost@@YA?AVndarray@012@PEBXAEBVdtype@012@Vtuple@12@2AEBVobject@api@12@@Z)

I copied libboost_numpy3-vc140-mt-gd-1_65.lib to boost_numpy3-vc140-mt-gd-1_65.lib previously so that the library can be found in the first place.

I built Boost using

b2.exe install link=static threading=multi toolset=msvc-14.0 address-model=64 --debug-configuration -j 4

I tried both

using python : 3.6 ;
using python : 3.6 : python
: # includes
: # libs
: on ;

and just

using python : 3.6 ;

in user-config.jam. Both lead to a functioning release library, but the same problem with the debug-version persists.

The same problem occurs whether building 1.64.0 patched from #125 or using the current snapshot from https://dl.bintray.com/boostorg/develop/.

Thanks a lot for your help!

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.