Open caelumable opened 4 years ago
cbc -Wa,"--32" -Wl,"-melf_i386" ./test/hello.cb 是可以编译的,编译出了hello,32位的elf,hello.o,hello.s但是hello不能执行 -bash: ./hello: cannot execute binary file: Exec format error
解决了。。。。。因为使用的是wsl https://blog.csdn.net/weixin_44597799/article/details/107164303 我也不知道怎么回事,安装了qemu-user-static就好了,而且重启wsl不用激活。。。。。。
cbc -Wa,"--32" -Wl,"-melf_i386" ./test/hello.cb 是可以编译的,编译出了hello,32位的elf,hello.o,hello.s但是hello不能执行 -bash: ./hello: cannot execute binary file: Exec format error