EmotiBit / EmotiBit_Plugins

Examples and information to make EmotiBit plugins
MIT License
0 stars 0 forks source link

LNK 2005 Error #14

Closed ThomasNels closed 5 days ago

ThomasNels commented 5 days ago

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:

  1. Go to the alg01.h file.
  2. Move the pybind11 code from alg01.cpp to alg01.h
  3. Follow the other steps given in the README_py.md file
  4. 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.