Skip Navigation

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?

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 comments

No comments