Error: dlltool 'dlltool.exe' not found

⚓ rust    📅 2025-06-14    👤 surdeus    👁️ 3      

surdeus

Hello Rust Community,
I am currently learning Rust and encountering an issue: whenever I want to compile a binary with valid dependencies, I get the Error
error: Error calling dlltool 'dlltool.exe': program not found
(Im using the x86 gnu win pc toolchain on win11, but the same problem persists for the msvc one)
I already checked the post with the same name, but I have rust-mingw installed, when I run
rustup component add rust-mingw
I get
info: component 'rust-mingw' for target 'x86_64-pc-windows-gnu' is up to date
(I also reinstalled the stable-x86_64-pc-windows-gnu toolchain). I also have mingw64 installed in the msys64-directory. It's pretty weird since the Error started appearing recently after everything working completely fine.
I have no idea what to do...
Thanks in advance

PS: It would also be nice to know how to completely reinstall Rust, I would try that too if I don't get it to work with your advice

1 post - 1 participant

Read full topic

🏷️ rust_feed