leungwensen / cbc-ubuntu-64bit

Cb (C flat) compiler. Cb is simplified C.
172 stars 51 forks source link

hello文件不可执行 #9

Open caelumable opened 4 years ago

caelumable commented 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

caelumable commented 4 years ago

解决了。。。。。因为使用的是wsl https://blog.csdn.net/weixin_44597799/article/details/107164303 我也不知道怎么回事,安装了qemu-user-static就好了,而且重启wsl不用激活。。。。。。