I'm trying to create pybind11 bindings for an existing cmake project. The CMakeLists.txt
file looks like the one in the tutorial. The project builds without errors, however, when trying to import the module in ipython, the following error comes up:
~/workspace/a/build/pya.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZN3a13FooC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
Trying to solve it: It seems related to the toolchain (this issue looks similar). I've gcc 6.5.0 and cmake 3.12.0 installed.