·
I am a beginner of programing from Jiangnan University

交叉编译需要指定target选项,比如:

# in config.toml
[target.x86_64-unknown-linux-musl]
rustflags = [
    "-C", "linker-flavor=gcc", "-C", "link-self-contained=no",
]
# zig cc -target x86_64-linux-musl
linker = ".cargo/musl-zcc.bat"
Replies
2

我不需要进行交叉编译,检查了一下也只是进行了默认配置(应该是吧),我感觉我排除了交叉编译的问题,但现在更不知道是什么导致报错了

解决了, 椰奶可爱捏