Hm, how do I make [@rust](https://programming.dev/c/rust) compile some code as `crate-type = ["cdylib"]` on Windows in a way that doesn't rely on non-existent downstream .dll files?

Pomax@mastodon.social to Rust@programming.dev – 1 points –

Hm, how do I make @rust compile some code as crate-type = ["cdylib"] on Windows in a way that doesn't rely on non-existent downstream .dll files?

Compiling the following bare minimum code makes the resultant .dll link to libm.dll, which is not a thing, Windows does not have a libm.dll

pub fn add(a: usize, b: usize) -\> usize { a + b }  
0

No comments yet. You could be first!