Replies: 1 comment 2 replies
-
You should remove |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a rust package which use pyo3, it create a python extension on windows.
It works well on windows 10/11, but recently I removed these code to linux(using wsl2 ubuntu). When I execute
cargo test
orcargo run
(I have a main.rs) on linux, it raiseserror: linking with cc failed: exit status: 1
and a lot ofundefined reference to some pyo3 functions
. Alsocargo run --no-default-features
has the same error.If I remove the feature
extension-module
,cargo test
orcargo run
could work through.What's the reason about these linking error? Should I pass some cargo flags into
build.rs
or removemultiple-pymethods
?Beta Was this translation helpful? Give feedback.
All reactions