Undefined symbol with pybind11 and python meson #5241
-
I don't know much about C++, but alas. I am making a game engine and I am compiling it as a library which is compiled with meson, and then I have python bindings with pybind11. But when I compile and install, when importing I have this error: >>> import funenginepy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /home/leandrobg/Projects/Games/tetris_fun_way/build/cp311/funenginepy.cpython-311-x86_64-linux-gnu.so: undefined symbol: _ZN9FunEngine4Math7Vector2IfE5get_xEv My meson build is:
My bindings currently are: |
Beta Was this translation helpful? Give feedback.
Answered by
leandro-benedet-garcia
Jul 13, 2024
Replies: 1 comment
-
I figured the issue, I was being a dumb dumb with the vector class, I tried making bindings with another simpler class and it worked fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
leandro-benedet-garcia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured the issue, I was being a dumb dumb with the vector class, I tried making bindings with another simpler class and it worked fine.