Public "stdcall" symbol not exported on cdylib on i686-pc-windows-gnu #50176
Open
Description
opened on Apr 23, 2018
I'm making a cdylib crate which exports a function in the following manner:
#[no_mangle]
pub extern "system" fn SomeFunction() {}
The library is then supposed to be loaded by another program at runtime and the function dlsym'd from it.
This works everywhere (32/64-bit Linux, macOS, 32/64-bit Windows MSVC, 64-bit Windows GNU) except the i686-pc-windows-gnu
target where the function isn't being exported from the resulting DLL for some reason.
Minimal example is the code above in a clean crate with crate-type = ["cdylib"]
.
Possibly related: #50007, although for me the bug occurrs in both debug and release.
Rust: stable (1.25.0), beta, nightly.
Activity