问题 I Want To Cross Compile Some Rust Code from Ubuntu to Windows, and receive an error about onexitbegin. Tried to follow various suggestions, but they don't have my specific error message: crt2.o:crtexe.c: (.rdata$.refptr.__onexitend[.refptr.__onexitend]+0x0): undefined reference to `__onexitend' collect2: error: ld returned 1 exit status cargo build --release --target x86_64-pc-windows-gnu Expected to get something built, but it blows up. The output says this: /usr/bin/x86_64-w64-mingw32-ld: