< 返回版块

豆沙饼 is Louys 发表于 2022-01-26 09:45

Tags:交叉编译

代码只输出helloword fn main() { println!("helloword!"); }

执行编译命令 cargo build --target x86_64-unknown-linux-gnu

报错 linking with cc failed: exit code: 1

= note: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: unrecognized option '--eh-frame-hdr' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: use the --help option for usage information collect2.exe: error: ld returned 1 exit status

评论区

写评论
BlackStone 2023-10-26 17:05

请问楼主解决了没?

1 共 1 条评论, 1 页