mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Create fix-rust-windows.md
This commit is contained in:
parent
c6fe1512d6
commit
50ce7673e0
1 changed files with 9 additions and 0 deletions
9
docs/fix-rust-windows.md
Normal file
9
docs/fix-rust-windows.md
Normal 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 ./
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue