-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't cross compile from Linux to Windows (x86_64) #32858
Comments
Same issue with Ubuntu 14.04.4 LTS |
Right now the linker specified with |
rustc -v -C linker=x86_64-w64-mingw32-gcc --target x86_64-pc-windows-gnu hello.rs Works correctlly. |
Will this ever be fixed? It doesn't make sense to use gcc as the linker... |
@laaas +1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment:
lxc-create -n rust -t ubuntu -- --release xenial
)apt install mingw-w64
)rustup
tool (curl https://sh.rustup.rs -sSf | sh
)rustup default beta
/rustup default nightly
)rustup target add x86_64-pc-windows-gnu
)I create a sample file
hello.rs
:And run compilation:
I expected
hello.exe
file, but has error:The text was updated successfully, but these errors were encountered: