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 }  
top 1 comments
sorted by: hot top new old
[-] anlumo@feddit.de 1 points 3 years ago

What linker are you using? It somehow looks like you’re using MinGW, which actually might have libm.dll.

this post was submitted on 04 Aug 2023
6 points (100.0% liked)

Rust

8252 readers
30 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS