Author Topic: 64bit to 32bit compatibility  (Read 4636 times)

bobfre

  • Guest
64bit to 32bit compatibility
« on: June 29, 2008, 04:03:20 am »
I sent my mate the binary, it wouldnt open...niether would his went he went me his, so we thought scrap that, we had to make ourselves s.out files he sent me his and his program worked fine, i senthim mine and it says the program cannot run, nothing to do with any type of errors it just says it cant run.

bash: ./Calc3int: cannot execute binary file

Please if theres any resolves to this please can you post,

if i use the 32bit codeblocks to build this will it mean it will run?

Thanks

bob

bobfre

  • Guest
Re: 64bit to 32bit compatibility
« Reply #1 on: June 29, 2008, 01:07:36 pm »
Come its not that hard of a question to answer

Please anyone

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: 64bit to 32bit compatibility
« Reply #2 on: June 29, 2008, 02:02:04 pm »
Come its not that hard of a question to answer

Please anyone

Yes it's not difficult to answer when you provide appropriate informations. Following command (assuming you're using linux) may help you.

Code
ldd Calc3int

Make sure the output matches at both locations.
Be a part of the solution, not a part of the problem.

niteice

  • Guest
Re: 64bit to 32bit compatibility
« Reply #3 on: June 29, 2008, 06:20:04 pm »
add -m32 to your compiler and linker flags.