mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
9 lines
413 B
Markdown
9 lines
413 B
Markdown
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 ./
|
|
```
|