aoc-cli icon indicating copy to clipboard operation
aoc-cli copied to clipboard

Cannot compile on windows 10

Open baptistemanson opened this issue 2 years ago • 2 comments

cargo install aoc-cli

note: ld: cannot find -lntdll
installed toolchains
--------------------

stable-x86_64-pc-windows-gnu (default)
stable-x86_64-pc-windows-msvc
nightly-2020-12-28-x86_64-pc-windows-msvc
nightly-x86_64-pc-windows-msvc

active toolchain
----------------

stable-x86_64-pc-windows-gnu (default)
rustc 1.66.0 (69f9c33d7 2022-12-12))`

baptistemanson avatar Jan 03 '23 11:01 baptistemanson

Thanks for reporting this, I'm going to try and reproduce it.

I see your default toolchain is set to windows-gnu. Do you have the mingw runtime libraries installed? You can download it from https://osdn.net/projects/mingw.

Also, have you tried installing using the windows-msvc toolchain instead? You can try that with cargo install --target x86_64-pc-windows-msvc aoc-cli but first make sure you have the redistributable Visual C++ runtime library, which you can download from https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist

scarvalhojr avatar Jan 03 '23 22:01 scarvalhojr

It does work with cargo install --target x86_64-pc-windows-msvc aoc-cli Yes I do have mingw installed.

baptistemanson avatar Jan 05 '23 08:01 baptistemanson