src/
: The sources of a very simple library with a parent classAnimal
and children classesDog
andCat
. The output of callingmake
in this folder will be the static librarylibanimal.a
.bindgins/
:wrapper.cc
contains the code used bypybind11
to generate the the dynamic library.
cd src
make
cd ../bindings
make
python
>>> import animal
>>> snoopy = animal.Dog('Snoopy')
>>> snoopy.talk()
waf!