Closed makavity closed 1 year ago
UPD: Tried i686-w64-mingw-gcc
and i686-w64-mingw-gcc-posix
- same results.
Solved by:
[target.i686-pc-windows-gnu.env]
passthrough = [
"CFLAGS=-DNTDDI_VERSION=NTDDI_VISTA -D_WIN32_WINNT=_WIN32_WINNT_VISTA",
]
According to https://stackoverflow.com/questions/37576454/gcc-mingw-compiler-does-not-recognize-cancelioex
Hello! IDK, should I type this issue to https://github.com/cross-rs/cross or here, so just put it here firstly :) When I try to compile rusb just as crate with cross - all is fine.
Next steps:
[dependencies] rusb = { version = "0.9", features = ["vendored"] }
cross build --release --target i686-pc-windows-gnu
Error:
And if I remove vendored feature from rusb, i'm getting this:
Any idea, what i'm doing wrong? Also, with x86_64-pc-windows-gnu - all is fine.