Hey Guys -
I’ve just started using Cython after having handwritten extensions for a while. I’ve run into an issue and would appreciate any insight you guys have - I have a common pxd which wraps our standard data representation. I then have module B built separately that cimports the data representation. This then results in a redefinition error as the struct DataPy appears in the header for the common module and then is redefined in the cpp of module B. Is there any way around this?
A replication of this is attached - build the common module first using the setup.sh, then build the session module using the setup.sh. DataPy will be declared in common.h and then redeclared in session.cpp.
Is there any way to avoid this happening?
Cheers
C