Don't know how to compile with bindings in separate file with setuptools #3188
-
I am struggling with this simple example: ========== main.h ===========
========= main.cpp ==========
============= main_py.cpp (bindings) ============
This compiles fine when running python setup.py develop. But, when I try import python_example then it fails with ImportError: DLL load failed while importing python_example: %1 is not a valid Win32 application. I am running this on Windows 10 with mingw64 and anaconda. Oddly, when I copy the binding to main.cpp then it works fine. I would like to split the bindings into separate files for a complex project I am working on, but nothing I've tried has worked so far. Any help would be appreciated, thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Silly mistake -- I forgot to include main_py.cpp in the setup file. |
Beta Was this translation helpful? Give feedback.
Silly mistake -- I forgot to include main_py.cpp in the setup file.