pybind11: fix and generalize example

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-02-21 00:00:02 +00:00
parent decf7f936e
commit 04a8521905
5 changed files with 28 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -eu
g++ -O3 -Wall -shared -std=c++11 -fPIC class_test.cpp -o class_test`python3-config --extension-suffix` -I /usr/include/python3.6m
set -eux
g++ `python3-config --cflags` -shared -std=c++11 -fPIC class_test.cpp -o class_test`python3-config --extension-suffix` `python3-config --libs`
./class_test_main.py