ld: error: undefined symbol when compile rodio crate dependency #383
Replies: 5 comments
|
Oboe links against the static C++ STL by default unless EDIT: katyo/oboe-rs#28 and linked issues seem related, though only show the issues at runtime after presumably linking against the shared lib. |
|
Thanks for pointing that out, I will close the issue now |
Before closing, just to confirm: did this actually fix the issue? If so it might be a good idea to loop in @katyo since oboe-rs explicitly supports static c++ linking by default and has commits to make it work. Perhaps you're using an older version that doesn't support it yet? |
|
I have add these lines in my Cargo.toml but the same issue appeared |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Error
Steps to reproduce
cargo apk runI found another repo that are using Rust for Android & rodio library https://github.com/endragor/cpal-android-test , so I think there should be no problem to compile rodio. I guess there is some problem with the toolchain? I don't know what should I do.
Isn't it should use clang++ instead of clang? How do I set it up?
All reactions