Category : cython

While cythonizing my Cython source code files, I can see a dozen of warnings about a label named ‘bad:’ generated by Cython, for example: read_input.cpp:30037:3: warning: label ‘bad’ defined but not used [-Wunused-label] The C++ generated function is like this: static PyObject* __pyx_convert__to_py_struct__VehicleCaps(struct VehicleCaps s) { PyObject* res; PyObject* member; res = __Pyx_PyDict_NewPresized(0); if (unlikely(!res)) ..

Read more

While cythonizing my Cython source code files, I can see a dozen of warnings about a label named ‘bad:’ generated by Cython, for example: read_input.cpp:30037:3: warning: label ‘bad’ defined but not used [-Wunused-label] The C++ generated function is like this: static PyObject* __pyx_convert__to_py_struct__VehicleCaps(struct VehicleCaps s) { PyObject* res; PyObject* member; res = __Pyx_PyDict_NewPresized(0); if (unlikely(!res)) ..

Read more

So I am having an example code that calculates the "sum of integers" created in Python, and transferred into Cython with CPDef. Followed by the tutorial from https://cython.readthedocs.io/en/latest/src/tutorial/embedding.html I have modified the C++ code any attempting to run it over C++. When I try to compile the main code, I have encountered the LNK2001 unresolved ..

Read more