est31 / msvc-wine-rust

Cross compile Rust programs to the MSVC Windows target using Wine
Other
62 stars 7 forks source link

How to compile crates using the cc crate? #6

Closed dvc94ch closed 3 years ago

dvc94ch commented 3 years ago

I'm trying to write some windows networking code using this method, but the wepoll-sys crate fails to compile as it has a little bit of c code in it. Is it possible to cross compile c code to windows too or only pure rust crates?

est31 commented 3 years ago

In theory yes, but then you'll likely need more parts of the SDK. I recommend downloading the enterprise WDK as linked to in the readme which contains more relevant files.