So I got the c++ program I want to execute a program (which I know was written in C++), but I get this error:
zsh: exec format error: ./myProgram
Output of file myProgram:
myProgram: Mach-O i386 executable
myProgram: Mach-O i386 executable
My system is 64bit, so is it the problem why I cannot execute it?
P.sa 64-bit Linux. I also tried on 32bit ubuntua 32-bit Ubuntu VM, but I get:
bash: ./myProgram: cannot execute binary file: Exec format error
Why wasn't I able execute that program? How can I execute it?