Create fix-rust-windows.md

This commit is contained in:
Eduard Tolosa 2019-08-10 16:38:54 -05:00 committed by GitHub
parent c6fe1512d6
commit 50ce7673e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

9
docs/fix-rust-windows.md Normal file
View file

@ -0,0 +1,9 @@
If you receive messages about an undefined reference to `__onexitbegin` or something similar, you may have an older version of crt2.o, instead of the version that ming has available to it.
Try this in your terminal and see if it helps:
```bash
$ cd ~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/
$ mv crt2.o crt2.o.bak
$ cp /usr/x86_64-w64-mingw32/lib/crt2.o ./
```