NASM on Virtual Machine Ubuntu: Cannot execute binary file exec format error
问题 I am getting an error after assembling a simple 64 bit hello world program. I am using the following commands: nasm -f elf64 hello.asm -o hello.o successfull ld -o hello.o hello -m elf_x86_64 successfull ./hello error: Cannot execute binary file exec format error I am executing this in a 64 bit Ubuntu Virtual Machine. I appreciate your help! 回答1: The error: error: Cannot execute binary file exec format error Suggests your system can't understand the executable you are trying to run. In my