As title said, I have C program complied and created a binary in 64-bit machine.Will this binary work under 32-bit ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
64-bit binaries cannot run on a 32-bit OS. If
filereportsELF 64-bit, you have a 64-bit binary.In order to build 32-bit binaries on a 64-bit Linux, you need pass
-m32to gcc. You also need to have 32-bit libraries installed (sudo apt-get install libc6-dev-i386).