Closed Boddlnagg closed 9 years ago
I've just seen that this is not specific to libc
but has been reported here: https://github.com/rust-lang/rust/issues/25072
Therefore this issue may be closed.
Closing in favor of the linked issue, thanks for the report!
I'm on 64-bit Windows, but using 32-bit Rust nightly (
rustc 1.1.0-nightly (0d7d3ec9d 2015-05-02) (built 2015-05-03)
), because I need a 32-bit target binary.Trying to compile a library [*] that references libc (via Cargo depency) gives the following linking error:
It seems to reference the correct files in
C:\Program Files (x86)\Rust nightly 1.1\bin\rustlib\i686-pc-windows-gnu\lib\
, and I verified thatcrt2.o
etc are in there.Also, I have 64-bit Rust installed in parallel (in
C:\Program Files\Rust nightly 1.1
), might that be the reason?[*] I could reduce it to an empty library, though the error originally occured when I tried to use user32-sys from https://github.com/retep998/winapi-rs