Replies: 1 comment
-
You will only have this issue on macOS, and A more portable way is described here: https://docs.python.org/3/c-api/long.html#c.PyLong_FromString: call the Python |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
In my project, I need to create a
type_caster
forint128_t
, so I'm using some private python APIs:_PyLong_AsByteArray
and_PyLong_FromByteArray
.However, it causes link issue when compiled using
nanobind_add_module
:I guess it is because
nanobind_add_module
doesn't add link to python library?I can work around by adding below line after
nanobind_add_module
:But want to know is there any recommended way to solve this?
Beta Was this translation helpful? Give feedback.
All reactions