#Does anyone know where to install dlltool
15 messages · Page 1 of 1 (latest)
I am trying to write a simple program using Windows API like that: extern crate windows_link; fn main() { windows_link::link!("kernel32.dll" "system" fn SetLastError(code: u32)); windows_link::link!("kernel32.dll" "system" fn GetLastError() -> u32); unsafe { SetLastError(1234); assert_eq!(GetLastError(), 1234);...
I think it's related
Are you building in MinGW or just directly in Windows?
Am just running cargo run
With a fresh cargo
with a added dependency of window-result which is the one erroring while compiling
I think directly in windows
windows-gnu
ping
Looks like you need to do rustup component add rust-mingw then
It says its up to date
and trying to run cargo results in the same thing as before
Hmm, not sure then sorry. Maybe make sure you're actually using the windows-gnu toolchain from within MinGW? I haven't ever using that GNU toolchain on Windows and it's definitely not the typical dev environment
I check it is
When I try to use msvc It errors
And so I cannot be using that
I think I deleted something important earlier today
Which caused all of this