Replies: 2 comments 5 replies
-
|
Could you post the complete command you use to configure and build the project in the devcontainer of the project? |
Beta Was this translation helpful? Give feedback.
5 replies
-
|
I can reproduce your issue now, but I'm not sure why your linker doesn't see the symbol. Regarding the multiple definitions issue - this is an upstream rust issue (rust-lang/rust#104707). In the issue, this blog post was linked and describes a way to work around this issue. |
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



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys! I love that someone actually made something like this, because it removes a lot of problems when integrating Rust in a C/C++ CMake project. Although I managed to make a lot of stuff work, I have a problem, and you have probably already guessed what is it. Linker doesn't find functions in a compiled Rust crate, and I have no idea who and what actually shat the bed and in what direction do I need to look at to fix this issue.
I can't make a reproducible example, so here is the whole project(sorry): https://github.com/ggoraa/edgetx/tree/eldb
But I will also show some relevant files here:
radio/src/rs/src/lib.rs:radio/src/rs/CMakeLists.txt:radio/src/rs/Cargo.toml:Error itself:
All relevant files are in
radio/srcdirectory.To compile, use this command:
cd build && cmake -DPCB=X7 -DCLI=1 -DGCC_ARM_PATH=/Applications/ARM/bin/ -DPYTHON_EXECUTABLE=/usr/local/bin/python3 ..inside abuilddir, as usual.Btw, this project is compiled for STM32, basically ARM Cortex-M
Can you guys help me resolve this issue?
Beta Was this translation helpful? Give feedback.
All reactions