Dear GNU Radio Users
I am building my own module but having difficulties on dealing with C++ headers and Python SWIG.
I have declared my own enum type (including CMakeLists.txt and swig file) [1] and made a working block with this enum type [2]. This works fine when I test the block.
On the other hand, another block [3] fails to pass test with error [4]. The key of the error is: "TypeError: in method 'encode_PSDU_make', argument 1 of type 'OP_MODE'. It's not a logical error nor an error in general_work(). It is an erroro when creating an instance (I am not sure this terminology is correct).
I am very confused that both [2] and [3] have the almost same structure, but one is OK and another is problematic. Currently, I am bypassing this probleme with a workaround by declaring enum OP_MODE explicitly once again in encode_PSDU.h. But it is not looking good and I need to edit source codes two times whenever change on enum OP_MODE happens.
Since these GIST codes are simplified version for brevity, if you need more information please let me know about it.