Link Error #3568
Unanswered
centorchen
asked this question in
Q&A
Link Error
#3568
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to use my own link library in pybind11??
here is the example code:
test1.h
int add(int a, int b);
test1.cpp
test2.cpp
firstly, I make test1 to a link library. Then, I use setup.py to make the module.
setup.py
here is the Error:
when I ldd the .so get this:
It seems that didn't link the test1.so
Beta Was this translation helpful? Give feedback.
All reactions