Closed mladedav closed 3 years ago
Please update to 1.55, which includes the libc fixes few bind
and a few others :).
@MabezDev I will, thank you. Just to check, I probably have to build that from source?
I downloaded this one from https://dl.espressif.com/dl/idf-rust/dist/x86_64-pc-windows-msvc/rust-1.54.0-dev-x86_64-pc-windows-msvc.zip but changing the version to 1.55 (and dropping the dev) results in 404.
You can find pre-built artifacts here, as well as installation scripts: https://github.com/esp-rs/rust-build/
Upgrading to 1.55 solved the issue.
Thank you both for your assistance.
I tried to use the std library for rust on esp32 but I am running to problems when compiling code that should bind a udp socket. I get an error about undefined reference to bind. If I comment out the networking work (which leaves me with a mostly empty program), the code compiles.
I tried both with TcpListener and UdpSocket and both fail on the linking phase.
I am sorry if I am making something wrong because I can see that https://github.com/ivmarkov/rust-esp32-std-hello makes use of
bind
, but when I use that feature there, the linker fails with the same error.I tried this code:
I expected to see this happen: explanation
Instead, this happened:
Meta
rustc --version --verbose
:OS: Windows 10
I am using the esp toolchain, installation according to https://github.com/espressif/rust-esp32-example/blob/main/docs/rust-on-xtensa-installation-x86_64-pc-windows-msvc.md I'm targeting
xtensa-esp32-espidf