質問編集履歴
2
試したことの追記、コマンドの修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -46,9 +46,9 @@
|
|
46
46
|
}
|
47
47
|
```
|
48
48
|
wrapper.cpython-37m-x86_64-linux-gnu.so: pybind11 を使って共有ライブラリを作成
|
49
|
-
|
49
|
+
※yymmtさんの指摘により共有ライブラリのPrefixをPYBIND11_MODULEの第一引数に合わせました
|
50
50
|
```bash
|
51
|
-
g++ -O3 -Wall -shared -std=c++11 -fPIC `python3 -m pybind11 --includes` wrapper.cpp -o
|
51
|
+
g++ -O3 -Wall -shared -std=c++11 -fPIC `python3 -m pybind11 --includes` wrapper.cpp -o hello_wrap`python3-config --extension-suffix`
|
52
52
|
```
|
53
53
|
|
54
54
|
|
@@ -77,7 +77,15 @@
|
|
77
77
|
U operator delete(void*)@@GLIBCXX_3.4
|
78
78
|
```
|
79
79
|
|
80
|
+
### 試したこと
|
81
|
+
リンクオプションにlibhello.aの指定を追加
|
82
|
+
※yymmtさんの指摘により共有ライブラリのPrefixをPYBIND11_MODULEの第一引数に合わせました
|
83
|
+
```bash
|
84
|
+
g++ -O3 -Wall -shared -std=c++11 -fPIC -L ../lib -lhello `python3 -m pybind11 --includes` wrapper.cpp -o hello_wrap`python3-config --extension-suffix`
|
85
|
+
```
|
80
86
|
|
87
|
+
|
88
|
+
|
81
89
|
### 補足情報(FW/ツールのバージョンなど)
|
82
90
|
Ubuntu 18.04
|
83
91
|
python 3.7.3
|
1
タグ追加
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|