Ex10: Successfull pyBind11
This commit is contained in:
parent
c5f7489717
commit
c6e48cf47c
4 changed files with 48 additions and 5 deletions
8
ex10/makefile
Normal file
8
ex10/makefile
Normal file
|
@ -0,0 +1,8 @@
|
|||
main:
|
||||
g++ -pthread ThreadPool.cc main.cpp
|
||||
|
||||
threadpool:
|
||||
g++ -pthread -D ENABLE_PYBIND=1 -O3 -Wall -shared -std=c++11 -fPIC `python3 -m pybind11 --includes` ThreadPool.cc -o ThreadPool`python3-config --extension-suffix`
|
||||
|
||||
clean:
|
||||
rm -rf *.so __pycache__
|
Reference in a new issue