Sorry for the spam, but this is all very new to me and I've had a few days of misdiagnosis of the issue.
when running my code, it compiles just fine using python setup.py etc.
However when importing the results into python I get that error and my variables names are 'Mangled' as I believe the technical term is and look like this:
0000000000007ab8 r _ZL12__pyx_k_main
0000000000007aaf r _ZL12__pyx_k_test
000000000020a160 b _ZL12__pyx_lineno
000000000020a000 b _ZL12__pyx_n_s_np
0000000000209fc0 b _ZL12__pyx_n_s_pd
0000000000209f28 b _ZL12__pyx_tuple_
000000000020a150 b _ZL13__pyx_clineno
instead of this
0000000000007ab8 r __pyx_k_main
0000000000007aaf r __pyx_k_test
000000000020a160 b __pyx_lineno
000000000020a000 b __pyx_n_s_np
0000000000209fc0 b __pyx_n_s_pd
0000000000209f28 b __pyx_tuple_
000000000020a150 b __pyx_clineno
At first I thought it was because the structure was pointing in a different place, however, changing that method did not help.
Having googled around, I've ruled out clashing names of files but that about it.
I can demangle them using nm -C as I found on the interwebs, but I do not know how to implement this into the code to fix it as it builds, my set up file currently looks like
ext_modules = cythonize("cyfile.pyx",
sources=['cfile.cpp'],
libraries=['stdc++'],
language="c++"
)
setup(
name="cyModule",
ext_modules=ext_modules,
include_dirs=[numpy.get_include()]
)
And I'm wondering if I need to include the nm library, whatever that is...
Again, sorry for the spam, however you are my only hope at this stage, thank you