linuxscripts/docs/fix-rust-windows.md

413 B

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:

$ 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 ./