6
submitted 3 years ago* (last edited 3 years ago) by TheRealPomax@mastodon.social to c/rust@programming.dev

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 }  

TheRealPomax

0 post score
0 comment score
joined 6 years ago