This bug compiles CMake to not build correctly. It happens during that build stage and will stop the process and make the Python example fail.
It is expected to build correctly to a .pyd file to continue throughout the program.
Steps to reproduce the behavior:
Go to the alg01.h file.
Move the pybind11 code from alg01.cpp to alg01.h
Follow the other steps given in the README_py.md file
See error, if done correctly.
This has been fixed in the past by ensuring that Pybind11 code stays within the .cpp file and outside of the .h file. This is a constraint is specifically enforced by Pybind11.
This bug compiles CMake to not build correctly. It happens during that build stage and will stop the process and make the Python example fail.
It is expected to build correctly to a .pyd file to continue throughout the program.
Steps to reproduce the behavior:
This has been fixed in the past by ensuring that Pybind11 code stays within the .cpp file and outside of the .h file. This is a constraint is specifically enforced by Pybind11.