Undefined reference to get_complex_dtype<256>

未關閉
#407 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
1/5
預估耗時
1-3 小時
新手友好度
38/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
cpp, python
領域
api, testing

研究方向

從 src/numpy/dtype.cpp 開始,該處提到了 LONGDOUBLE 和 2 * LONGDOUBLE dtype 定義。執行 libs/python/test/numpy/dtype.py 測試或報告中的 libs/python/test 命令,並檢查產生的擴充功能之符號錯誤。當 dtype 測試能夠成功匯入,且不存在未定義的 get_complex_dtype<256> 參照時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

In src/numpy/dtype.cpp, the definition of get_float_dtype < LONGDOUBLE > and get_complex_dtype < 2 * LONGDOUBLE > lacks BOOST_NUMPY_DECL.

Output of libs/python/test:
capture-output ../bin.v2/libs/python/test/numpy~dtype.test/gcc-10/release/debug-symbols-on/pch-off/python-3.9/threading-multi/visibility-hidden/numpy~dtype
====== BEGIN OUTPUT ======
Traceback (most recent call last):
File "/root/rpmbuild/BUILD/boost_1_78_0/status/../libs/python/test/numpy/dtype.py", line 8, in
import dtype_ext
ImportError: /root/rpmbuild/BUILD/boost_1_78_0/bin.v2/libs/python/test/numpy~dtype.test/gcc-10/release/debug-symbols-on/pch-off/python-3.9/threading-multi/visibility-hidden/dtype_ext.so: undefined symbol: _ZN5boost6python5numpy6detail17get_complex_dtypeILi256EEENS1_5dtypeEv

EXIT STATUS: 1
====== END OUTPUT ======

主要語言
C++
星號
537
分支
223
平均合併
11 小時 22 分鐘
30 天內合併 PR
2

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

boostorg/python 的其他 Issue

查看 boostorg/python 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。